Hi Cameron,
> 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.
Ok, I will. Good to
ies.
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
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
Hi Cameron,
> 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).
Hi Cameron,
> 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).
>
> Thusly:
>
> bsed 's/this/that/' several filenames here ...
>
> or
>
> find dir -type f -print | xargs bsed '/a regexp i don
On Tue, Mar 20, 2001 at 02:27:53PM +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
| I need to do a search and replace on multiple files. I think awk should be usefull
|for this, but I have no experience with awk at all.
| Maybe someone has a script lying around that replaces string
Hi everyone,
I need to do a search and replace on multiple files. I think awk should be usefull
for this, but I have no experience with awk at all.
Maybe someone has a script lying around that replaces string1 with string2 in all
files in a directory recursively which I can