Just a thought on sed

Phil Gendreau phil at xmailer.ods.org
Mon May 6 07:15:49 PDT 2002


* 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. 

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

--
Philippe Gendreau
phil at xmailer.ods.org
-- 
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