Search Results

Search: Posts Made By: uncleMonty
3,803
Posted By uncleMonty
Yes, thanks for the description. And I've learned...
Yes, thanks for the description. And I've learned that the loop through the file the first time to build the array of counters is kept separate from the second loop that prints the line, via the...
3,803
Posted By uncleMonty
Thank you Don. I corrected "cnt[$5]" to "c[5]"...
Thank you Don. I corrected "cnt[$5]" to "c[5]" and it worked (on bash in OS X 10.6).

---------- Post updated at 02:08 PM ---------- Previous update was at 02:03 PM ----------

Thanks Rudi. That...
3,803
Posted By uncleMonty
Thank you Rudi. I should learn awk, shouldn't I....
Thank you Rudi. I should learn awk, shouldn't I. That is a good way to count the occurrences. Is there a way, having counted the occurrences, to echo an entire line, if and only if the 1st 3rd 5th...
3,803
Posted By uncleMonty
Thanks for the friendly welcome Don. I haven't...
Thanks for the friendly welcome Don. I haven't had any homework assignments for over 25 years. I'm a hobbyist working on a maths problem. I wrote a little C program to generate this data, and want to...
3,803
Posted By uncleMonty
Find all lines in file such that each word on that line appears in at least n lines of the file
I have a file where every line includes four expressions with a caret in the middle (plus some other "words" or fields, always separated by spaces). I would like to extract from this file, all those...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 03:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy