The UNIX and Linux Forums  

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 -->
  #3 (permalink)  
Old 11-19-2008
Christoph Spohr Christoph Spohr is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 205
Hi,

i don't know exactly what you are trying to do, but if you only want to change line 2 of you file, this should be enough:


Code:
sed "/^99/s/,,,/,0,0,/g" file

Which means: go to the line starting with 99 and on this line substitute three kommas in row by ,0,0,

HTH Chris