Search Results

Search: Posts Made By: Drenhead
1,568
Posted By Don Cragun
The sort utility key field specifiers -k 1,3 and...
The sort utility key field specifiers -k 1,3 and -k 12,4 are specifying ranges of fields (not output print columns). To sort on the 1st three characters (still not print columns) on the line as the...
2,001
Posted By Corona688
Use nawk on solaris.
Use nawk on solaris.
2,001
Posted By anbu23
Remove the quote after semicolon $ awk 'BEGIN {...
Remove the quote after semicolon
$ awk 'BEGIN { FS = "|" } ; { arr[$1 "|" $2] += $3 } END {for (i in arr) {print i "|" arr[i] } }' file
600|3H68|46
600|3H6F|290
600|3H69|46
600|3H6G|24...
Showing results 1 to 3 of 3

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