I have a txt file with two columns
Freq Loss
10 30
20 40
30 10
40 50
50 60
i have used the below code to get the minimum value out of this array in second cloumn.
awk 'NR==N{min=$N;max=$N}NR>N{if ($N>max){max=$N};if ($N<min){min=$N}}END {print ""min" "max}' $dummyfile.arr
my code finds out the minimum in second coulmn, but
1) I want to get correcponding Freq for tht minimum value
---------- Post updated at 12:08 PM ---------- Previous update was at 12:06 PM ----------
I want to output that freq to a txt file