[brlug-general] SED append help
Keith M. Richard
krichard at ogb.state.la.us
Fri Jul 11 09:06:25 CDT 2008
All,
I am in need of a little help with sed. I have Googled it to
death and haven't found anything that can help so here goes. I want to
search a configuration file for a certain element and then append
something to the end of that line. I just want to append to the line no
matter what else is on it. I can do a full replace of the line, but I
would rather just append a new key to the end. The reason I want to
append is some config files may have more keys than others.
EXAMPLE:
Searching for this element (preload): preload=fastbox;valid
It may also look like this: preload=fastbox;valid;eye
Appended line after sed: preload=fastbox;valid;xalid
Keith M Richard
State of Louisiana
Office of Group Benefits
IT Tech Support Specialist 3
krichard at ogb.state.la.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://brlug.net/pipermail/general_brlug.net/attachments/20080711/c5f1d5c9/attachment.html>
More information about the General
mailing list