Re: search and replace on multiple files

2001-03-23 Thread Leonard den Ottolander
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 know

Re: search and replace on multiple files

2001-03-22 Thread Leonard den Ottolander
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). Not

Re: search and replace on multiple files

2001-03-22 Thread Cameron Simpson
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

RE: search and replace on multiple files

2001-03-22 Thread Hank Wethington
-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

Re: search and replace on multiple files

2001-03-21 Thread Leonard den Ottolander
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 dont like/d'

search and replace on multiple files

2001-03-20 Thread leonardjo
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

Re: search and replace on multiple files

2001-03-20 Thread Cameron Simpson
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 string1