Search Results

Search: Posts Made By: Sheel
2,036
Posted By pravin27
Try this, awk -F"," '{if(! a[$4] )...
Try this,

awk -F"," '{if(! a[$4] ) {a[$4]=$2;b[++i]=$0} else if( $2 < a[$4]){a[$4]=$2;b[i]=$0}} END {for(j=1;j<=i;j++) {print b[j]}}' inputfile
Showing results 1 to 1 of 1

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