Search Results

Search: Posts Made By: MadeInGermany
3,745
Posted By MadeInGermany
Clear and efficient is a BEGIN section - the loop...
Clear and efficient is a BEGIN section - the loop section stays small:
awk 'BEGIN {mx=0} $1>mx {mx=$1} END {print mx}'In this case you can also do a cast to integer by a +0:
awk '$1>mx {mx=$1} END...
Showing results 1 to 1 of 1

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