The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-11-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
Does the value "OK" depend on some calculation, or do you just want to wipe the first field and add "OK" at the end on all lines?

Code:
sed -e 's/^Instance : //' -e 's/$/,OK/' file
Reply With Quote