The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: KSH Script Q.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-21-2007
roadwest roadwest is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 2
KSH Script Q.

Hi all,

Can anyone help me out with a simple awk routine (or alternative) that will
read in and collate all the $1 values into a single line?

Input;
4134,Bloggs,Joe,802437394
4189,Bloggs,Joe,802437394
3234,Soap,Joe,824324999
4012,Bloggs,Joe,802437394
3425,Soap,Joe,824324999
1232,Blunt,James,803423421

Output;
Bloggs,Joe,802437394,4134,4189,4012
Soap,Joe,824324999,3234,3425
Blunt,James,803423421,1232