Search Results

Search: Posts Made By: Linoleum
2,707
Posted By Scrutinizer
Try: awk -F, 'NR==1{next} $3!=p{close(cmd);...
Try:
awk -F, 'NR==1{next} $3!=p{close(cmd); p=$3} {print $1,$2 | cmd}' cmd=STAT_CMD temp.csv
2,707
Posted By clx
You need to get the list of groups. awk...
You need to get the list of groups.


awk -F, 'NR>1 {print $3}' temp.csv | sort -u | while read group
do
awk -v g=$group -F, '$3==g {print $1,$2}' temp.csv | STAT_CMD
done

regarding...
Showing results 1 to 2 of 2

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