Just a thought on sed

Nicholas Dille darkyeti at gmx.net
Sat May 4 12:29:52 PDT 2002


On Sat, May 04, 2002 at 01:55:25PM -0400, Phil Gendreau wrote:
> $ echo "$(sed 's/foo/bar/g' file)" >file

i have tried something similar on log files and it was a complete mess
because make uses ` and ' to delimit directories.
one could argue that nobody would use those in Makefiles and the like
but you never know!

i vote for sticking with the old "make a backup, and sed it to the
original" style method.
it works _without_ fancy shell magic!

nic.

-- 
rakshas at quietude / 7793747 / rakshas dot de
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list