Search Results

Search: Posts Made By: mstafreshi
1,517
Posted By mstafreshi
awk ' $2 > max { max = $2 } NR == 1 { next;...
awk '
$2 > max { max = $2 }
NR == 1 { next; }
$1 == 1 { print 1, max; max = $2; }
' filename
my code return one row less than your output! can it help you find your way ?
2,275
Posted By mstafreshi
replace for i in...
replace
for i in /users/jack/system1-dr.txtwith
for i in `cat /users/jack/system1-dr.txt`the code between ` ` will be executed and become arguments for "for loop"
Showing results 1 to 2 of 2

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