Search Results

Search: Posts Made By: theawknewbie
13,999
Posted By sk1418
here I made an example, hope that it helps: ...
here I made an example, hope that it helps:

a sorted file (descending) named t

kent$ cat t
foo 100
foo 99
foo 98
foo 97
foo 96
foo 95
foo 94
foo 93
foo 92
....
foo 5
foo 4
foo 3...
13,999
Posted By sk1418
assumed that you have sorted the file. based on...
assumed that you have sorted the file. based on your example data:
kent$ echo "133 800
133 799
133 798
133 403
133 402
133 401"|awk 'NR==1{max=$2;next;}max-$2>5{print $0;exit;}'
...
Showing results 1 to 2 of 2

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