Just a thought on sed

Nicholas Dille darkyeti at gmx.net
Mon May 6 15:39:00 PDT 2002


On Mon, May 06, 2002 at 10:15:49AM -0400, Phil Gendreau wrote:
> * Marc Heerdink <marc at linuxfromscratch.org> [2002-05-06 15:38]:
> > So there's nothing to worry about, Nicholas might be using an old sed...
> > The echo "$(sed 's///' file)" >file command looks so obfuscated though
> > that a simple backup, sed the backup to the original is still the better
> > solution.
> 
> Ah! that's more like it ;)
> 
> He was right about the "fancy shell magic".
> The old way is more self explanatory and does make a backup. 

at least we agree on that ;-)

> It's still an interesting construct,
> but maybe not suitable for the book.
> I admit it was a bit offtrack.

for some more shell magic you might want to visit http://rakshas.de

regards,
nic.

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



More information about the lfs-chat mailing list