On 08:22 24 Jun 2003, Jon Haugsand <[EMAIL PROTECTED]> wrote:
| * Cameron Simpson
| > You can get bsed here:
| >
| >     http://www.cskk.ezoshosting.com/cs/scripts/bsed
| >
| > An extremely useful wrapper for sed.
| 
| Not much information here, is it?  Can you give a short tutorial?

You treat it just like sed (see "man sed") for the most part, except that
when you give it filenames, instead of reciting their content to stdout,
edited, it rewrites each file with those edits. It uses sed internally
to do the work.

So this:

        sed 's/this/that/g' file

write "file"'s content to stdout with "this" replaced by "that".

This:

        bsed 's/this/that/g' file

edits the file itself the same way.

Very handy for large scale simple changes.

Cheers,
-- 
Cameron Simpson <[EMAIL PROTECTED]> DoD#743
http://www.cskk.ezoshosting.com/cs/

"Yeh, Buddy..
 I've got your COMPUTER!
 Right HERE!!"
 (computer THIS!)
        - Larry Cunningham, [EMAIL PROTECTED]


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to