[ale] Sed help with append
Ed Cashin
ecashin at noserose.net
Tue Mar 23 15:28:00 EDT 2010
On Tue, Mar 23, 2010 at 12:31 PM, Michael H. Warfield <mhw at wittsend.com> wrote:
...
> I don't see any way you would have a prayer of making that work.
Yes, the append command is like the one in ed. It adds below the line
in question.
ecashin at meili:/tmp$ echo hi | sed 'ayo'
hi
yo
Sometimes sed's easier to use when you create a less general
solution. If your input looks exactly like what you showed us, and
you don't need generality, you can just put "www." after "ServerName ".
sed 's!ServerName !&www.!' test > result
--
Ed Cashin <ecashin at noserose.net>
http://noserose.net/e/
http://www.coraid.com/
More information about the Ale
mailing list