Search found 20 matches

by coffeeking
Mon Aug 03, 2020 10:58 am
Forum: Software & Applications
Topic: baffling C error message
Replies: 2
Views: 63

Re: baffling C error message

That did it! Thanks again, rene. You've bailed me out several times! I'm sure glad you're monitoring these discussions.

(And I looked all over the web for help with this error message and never once found this explanation. Go figure.)
by coffeeking
Mon Aug 03, 2020 9:46 am
Forum: Software & Applications
Topic: baffling C error message
Replies: 2
Views: 63

baffling C error message

Any C programmers out there? I am writing my first C program in years, and I'm rusty (to say the least). However, I've got my program compiling with now only 1 error! This one: "error: initializer element is not computable at load time" and it points to this line: const char delim = ","; (which I ha...
by coffeeking
Fri Jul 31, 2020 9:14 am
Forum: Scripts & Bash
Topic: how to sort on comma delimited fields enclosed in double quotes
Replies: 14
Views: 259

Re: how to sort on comma delimited fields enclosed in double quotes

Oh my gosh! So sorry! I was doing that correctly initially but in my haste and confusion subsequently forgot it!! What a rookie error! Sort seems to be working now! Thank you again for your help. I appreciate so much the help of the experts and "old hands" on this forum!! P.S. Yes, you're right abou...
by coffeeking
Fri Jul 31, 2020 8:53 am
Forum: Scripts & Bash
Topic: how to sort on comma delimited fields enclosed in double quotes
Replies: 14
Views: 259

Re: how to sort on comma delimited fields enclosed in double quotes

Thanks. This hex viewer is showing hex '0a' at the end of the records, so evidently the required line feed is there. But now I'm stumped again. If the problem I'm having sorting this file is not a end of line problem, then I don't know what it is. This file is very big, and the records are very big....
by coffeeking
Fri Jul 31, 2020 7:55 am
Forum: Scripts & Bash
Topic: how to sort on comma delimited fields enclosed in double quotes
Replies: 14
Views: 259

Re: how to sort on comma delimited fields enclosed in double quotes

Hmm, yes I see that that is working. I'm wondering now if I may not have another "end of line" problem --- i.e. are all of my lines ending with the required line feed? This is another file I acquired from a non-unix world, so it probably doesn't have line feeds. When I execute "file filename" it say...
by coffeeking
Thu Jul 30, 2020 8:23 pm
Forum: Scripts & Bash
Topic: how to sort on comma delimited fields enclosed in double quotes
Replies: 14
Views: 259

Re: how to sort on comma delimited fields enclosed in double quotes

Somewhat in my defense, all of this data is publicly available, nothing confidential. However, in future, I'll mask all personally identifiable info. Here is an example of a command I've been trying to run sort -t -k5,1 -k4,1 -k12,1 -k14,1 filetosort.txt > filesorted.txt And, as I say, I am consiste...
by coffeeking
Thu Jul 30, 2020 7:35 pm
Forum: Scripts & Bash
Topic: how to sort on comma delimited fields enclosed in double quotes
Replies: 14
Views: 259

Re: how to sort on comma delimited fields enclosed in double quotes

Sorry, should have thought about posting personally identifiable data. Won't do that again! I have been using the 'sort' command with the '-t' and '-k' parameters but keep getting the error message "multi-character tab '-k5,1'" I'm really a little unclear on how to use the '-k' parameter ---- i.e., ...
by coffeeking
Thu Jul 30, 2020 6:38 pm
Forum: Scripts & Bash
Topic: how to sort on comma delimited fields enclosed in double quotes
Replies: 14
Views: 259

how to sort on comma delimited fields enclosed in double quotes

Can someone tell me how to sort this file on fields 5, then 4, then 12, then 14? Thank you. "OH0010000000","14","7400076","LAST","FIRST","MIDDLE","","1954-04-13","1974-0 4-08","ACTIVE","R","123 ANYSTREET","","BLANCHESTER","OH","45107","","","","","", "","","","","","","GREAT OAKS CAREER CAMPUSES",""...
by coffeeking
Sun Jul 26, 2020 7:36 pm
Forum: Scripts & Bash
Topic: limit on sort file size?
Replies: 17
Views: 335

Re: limit on sort file size?

Wow! That piping into the 'tr" transform of \r to \n worked like a champ! Thank you!! The file is sorting fine now. Just one more question (I hope!). Here's the top of my sorted file: <removed> As you can see, the sort seems to be completely ignoring the commas. Do I use the 'key" option for sort to...
by coffeeking
Sun Jul 26, 2020 5:42 pm
Forum: Scripts & Bash
Topic: limit on sort file size?
Replies: 17
Views: 335

Re: limit on sort file size?

OK, sorry, you're all probably getting very impatient with all of my false starts and misdirection here! Sorry! I think rene is right on the money! Now i see that at the end of every record in the small file for which the sort is working --------> a line feed character! This line feed character is N...
by coffeeking
Sun Jul 26, 2020 5:26 pm
Forum: Scripts & Bash
Topic: limit on sort file size?
Replies: 17
Views: 335

Re: limit on sort file size?

rene, thanks for your reply. I did not see your reply before I posted my previous reply. I did a "file filename" and this told me that there is a carriage return at the end of each line (CR) And, when I do a "more filename" I do see the file displayed using the CR at the end of each line, i.e., each...
by coffeeking
Sun Jul 26, 2020 5:12 pm
Forum: Scripts & Bash
Topic: limit on sort file size?
Replies: 17
Views: 335

Re: limit on sort file size?

I've tried again sorting a much smaller file with the same characteristics, comma delimited, CR at end of lines, and it sorts fine! So the only difference between the sorts that are working and the sorts that aren't working seems to be the size of the file. ------> small file works, big one doesn't!...
by coffeeking
Sun Jul 26, 2020 3:11 pm
Forum: Scripts & Bash
Topic: limit on sort file size?
Replies: 17
Views: 335

Re: limit on sort file size?

Is there some way for me to figure out what this control character is at the end of all of my records and then perhaps to tell the sort to recognize this character as the end of a record?
by coffeeking
Sun Jul 26, 2020 3:06 pm
Forum: Scripts & Bash
Topic: limit on sort file size?
Replies: 17
Views: 335

Re: limit on sort file size?

Thanks for running this test. Evidently the file size is not the problem. My records are comma delimited and have some kind of control character at the end of each record, a carriage return or line feed or something like that. Would either of these 2 characteristics be a problem? I notice when I vie...
by coffeeking
Sun Jul 26, 2020 12:13 pm
Forum: Scripts & Bash
Topic: limit on sort file size?
Replies: 17
Views: 335

Re: limit on sort file size?

7.5 million records ---- file is not quite 500MB ----- too big for the sort command?
by coffeeking
Sun Jul 26, 2020 10:31 am
Forum: Scripts & Bash
Topic: limit on sort file size?
Replies: 17
Views: 335

Re: limit on sort file size?

Thanks for this information. I did the findmnt /tmp and it didn't return anything! So I created the temp directory in my home directory and ran "sort -T /home/rod/temp -o sortedResidentList.txt OhioResidentList.txt" Unfortunately, the result was no different ---- file simply copied, no error messages.
by coffeeking
Sat Jul 25, 2020 11:11 am
Forum: Scripts & Bash
Topic: limit on sort file size?
Replies: 17
Views: 335

Re: limit on sort file size?

Well, I've got boatloads of disk space, way, way more than the size of this file and the size of the sorted version, but every time I try to sort it, I get the same, unsorted file returned, nothing sorted, and no error messages. It's like the operating system is saying "Nope, this is too big to sort...
by coffeeking
Sat Jul 25, 2020 9:53 am
Forum: Scripts & Bash
Topic: limit on sort file size?
Replies: 17
Views: 335

limit on sort file size?

Is there a limit on the size of a file you can sort with the sort command (in terminal)? I've been sorting files OK, but, when I try to sort a very big file, what comes back is just the original file unsorted, no error messages.
by coffeeking
Tue Dec 24, 2019 1:13 pm
Forum: Introduce yourself
Topic: brand new to Mint - trying to figure things out one thing at a time [SOLVED]
Replies: 11
Views: 560

Re: brand new to Mint - trying to figure things out one thing at a time

Thank you, Moem and Isemmens, for your replies and information. I wasn't sure where to post this, but thought that, as a complete novice, the safest bet was to post it in Introduce Yourself. I will know better next time where to post a request for help like this. I have very good news, however! Name...
by coffeeking
Mon Dec 23, 2019 9:21 pm
Forum: Introduce yourself
Topic: brand new to Mint - trying to figure things out one thing at a time [SOLVED]
Replies: 11
Views: 560

brand new to Mint - trying to figure things out one thing at a time [SOLVED]

Hello everyone. Am currently trying to figure out how to get Linux Mint to see and use my Multifunction wireless Brother printer. If anyone has advice (good, experienced advice preferred! :D ) please send it my way! Thanks.

Go to advanced search