Search Results

Search: Posts Made By: joggdial3000
4,669
Posted By joggdial3000
just pipping a sort solved the problem, awk...
just pipping a sort solved the problem,

awk '{A[$1$2$3$4]=$0}END{for (i in A){print A[i]}}' filename | sort
thanks a lot, it worked like a charm :)

---------- Post updated at 04:18 PM...
4,669
Posted By joggdial3000
thanks, i think it worked but with unsorted...
thanks, i think it worked but with unsorted output
2002 2 1 15 0 2443.85 141.95 9.11 22.63 1.45 0.00 285.80 2301.90
2002 2 0 ...
4,669
Posted By joggdial3000
thanks for the quick answer but the output is not...
thanks for the quick answer but the output is not the expected:
2002 2 0 45 0 2442.55 140.15 11.20 22.34 1.79 0.00 285.80 2302.40
2002 2 ...
4,669
Posted By joggdial3000
Remove duplicate lines (the first matching line by field criteria)
Hello to all,

I have this file
2002 1 23 0 0 2435.60 131.70 5.60 20.99 0.89 0.00 285.80 2303.90
2002 1 23 15 0 ...
Showing results 1 to 4 of 4

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