Search Results

Search: Posts Made By: Don Cragun
1,939
Posted By Don Cragun
If you would show us what your input file really...
If you would show us what your input file really looks like, there would probably be no need to create a separate file.
1,939
Posted By Don Cragun
Do the contents of part1.csv look like the sample...
Do the contents of part1.csv look like the sample input file you supplied in the 1st posting on this thread? (It is unusual to use the .csv filename extension when there are no commas and only one...
1,939
Posted By Don Cragun
Sorry. I thought it was pretty obvious. But, I...
Sorry. I thought it was pretty obvious. But, I see that I left in a debugging statement that probably confused things.

The corrected script is:
awk '{ c[$1]++}
END { for(h = 0; h <= 23;...
1,939
Posted By Don Cragun
Since the title of this thread includes...
Since the title of this thread includes "sorting", I assume that your real input is not already sorted by time like you sample input file. The following should do what you want:
awk '{ c[$1]++}...
Showing results 1 to 4 of 4

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