I use a program called rpl You can pick it up here
:http://www.laffeycomputer.com/rpl.html Freshmeat gave it a great score and
I've been impressed with the ease of use. I don't have to use it from and
editor, just the command line. It even works recursively through
directories.

Hank

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Cameron Simpson
Sent: Thursday, March 22, 2001 2:53 PM
To: Leonard den Ottolander
Cc: [EMAIL PROTECTED]
Subject: Re: search and replace on multiple files


On Thu, Mar 22, 2001 at 07:53:26PM +0100, Leonard den Ottolander
<[EMAIL PROTECTED]> wrote:
| > I used bsed for this:
| >
| >  http://www.zip.com.au/~cs/scripts/bsed
| >
| > It's a wrapper for sed (which reads stdin and writes stdout).
|
|  I noticed bsed only replaces the first occurence of a string in each line
in
| a text file (line being separated by a newline char). Not sure if you are
| aware of this fact.

RTFM on sed my son. That is _standard_ behaviour. It's only a wrapper for
sed. If you want them all, then:

        s/this/that/g
            see  ---^

This is nothing to do with bsed. It's sed. Likewise with perl. You always
want such control.
--
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

Zombies don't get pumped.       - Jake, in rec.climbing



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to