Search Results

Search: Posts Made By: bperl
5,349
Posted By pravin27
Try this, awk -F"|"...
Try this,

awk -F"|" '{if(a[$1]){a[$1]=a[$1]","$2} else { a[$1]=$2}} END {for (i in a) {print i"|"a[i]}}' inputfile
Showing results 1 to 1 of 1

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