The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: changing format
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-30-2008
KevinADC KevinADC is offline
Registered User
 

Join Date: Jan 2008
Posts: 338
did you want to modify your current script to produce the desired output or write a new script to modify the output? Here is a perl solution until you clarify your requirements:

Code:
perl -pe 'BEGIN {$i = 0;} print $i++, " ", s/,/ /g;' inputfile > outputfile
Reply With Quote