The UNIX and Linux Forums
>
Special Forums
>
UNIX and Linux Applications
shell script command
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
shell script command
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
04-11-2008
era
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
era
View Public Profile
Visit era's homepage!
Find all posts by era