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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-10-2008
nani123 nani123 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 2
Need scripting Help

Dear Scripting experts,
Request to guide me in moving column values to rows
Example:
File 1:

1,a,b,c,d,e,f,g,h
2,f,g,h,i,l

Output file
1,a,b,c
1,d,e,f
1,g,h
2,f,g,h
2,i,l


Actually I tried with using awk and sed but unfortunately i couldn't get the resultant.

Regards
nani