I can able to get the minimum ones, but only the first rows... I need the other rows belonging to the minimum values.
So far I have
awk 'min[$1]=="" || min[$1]>$3 {min[$1]=$3; data[$1]=$0}END{for(i in min) print data[i]}' /path/to/infile
The result is
4 1 0.0518504806582944...
Hi all,
I have the following data rows:
4 1 0.0518504806582944 0.0 7.3
4 2 0.0518504806582944 30.0 7.9
4 3 0.0518504806582944 60.0 8.0
4 1 4.2634994446132923 0.0 2.8
4 2...
Hello,
I have patterns like this:
0100100110010001
I would like to break up this and should get the following patterns:
0000100110010001
0100000010010001
0100100100000001
0100100110010000
So you can imagine the original one as blocks of 4's
0100 1001 1001 0001
and I should leave every...
Hello,
I have the following rows:
1 0.054210 4
1 1.215824 5
1 0.790275 32
1 0.739529 23
3 0.429844 12
3 0.000000 94
I would like to filter the rows in that way if the first column is the same than find the minimum value of the second column and in this case print the corresponding 3rd...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.