Well, that command speaks for itself "
sed" edits "
-i in
place ( on the spot ) and replaces the word "
ugly with "
beautiful"
in the file "
/home/bruno/old-friends/sue.txt"
Now, here comes the real magic:
Imagine
you have a whole lot of files in a directory ( all about Sue ) and you
want the same command to do all those files in one go because she/he is
standing right at the door . .
Remember the
find command ? We will combine the two:
Sure
in combination with the find command you can do all kind of nice
tricks, even if you don't remember where the files are located !
Aditionally I did find a little script
on the net for if you often have to find and
replace multiple files at once:
But
it leaves "traces", e.g it backs up the old file with a .save extension
. . . so is not really effective when Sue comes around ;-/

Bruno
-- Jan 4 2005 ( Revised Dec 10 2005 ) --