Re: File contents

2002-05-07 Thread Martin WHEELER
On Tue, 7 May 2002, Stephane Bortzmeyer wrote: > > perl is the ideal tool to do this. > > > > No, you should use Python. > > Ah, but using which editor? ;-) -- Martin Wheeler <[EMAIL PROTECTED]> gpg key 01269BEB @ the.earth.li -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject o

Re: File contents

2002-05-07 Thread Stephane Bortzmeyer
On Tue, May 07, 2002 at 06:21:18PM +1000, Craig Sanders <[EMAIL PROTECTED]> wrote a message of 27 lines which said: > does python have an edit-in-place command line option, like perl's -i? Unfortunately no, but you can easily write a script which will do the same. Here is an example, quick an

Re: File contents

2002-05-07 Thread Craig Sanders
On Tue, May 07, 2002 at 09:51:15AM +0200, Stephane Bortzmeyer wrote: > > perl is the ideal tool to do this. > > > > No, you should use Python. > > does python have an edit-in-place command line option, like perl's -i? craig -- craig sanders <[EMAIL PROTECTED]> Fabricati Diem, PVNC.

Re: File contents

2002-05-07 Thread Stephane Bortzmeyer
On Mon, May 06, 2002 at 08:39:02PM +1000, Craig Sanders <[EMAIL PROTECTED]> wrote a message of 32 lines which said: > perl is the ideal tool to do this. No, you should use Python. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL P

Re: File contents

2002-05-06 Thread Ulf Rompe
"Craig" <[EMAIL PROTECTED]> writes: > Could someone help with changing file contents in a specific > directory with a number of files. > > I used greg to extract the criteria but need something to change it. Greg should feel a bit abused... Poor guy. Or did you

Re: File contents

2002-05-06 Thread Craig Sanders
On Mon, May 06, 2002 at 12:32:17PM +0200, Craig wrote: > Could someone help with changing file contents in a specific directory > with a number of files. > > I used greg to extract the criteria but need something to change it. perl is the ideal tool to do this. in particular, see

Re: File contents

2002-05-06 Thread martin f krafft
also sprach Craig <[EMAIL PROTECTED]> [2002.05.06.1232 +0200]: > Could someone help with changing file contents > in a specific directory with a number of files. > > I used greg to extract the criteria but need > something to change it. man sed -- martin;

File contents

2002-05-06 Thread Craig
Hi Fellows Could someone help with changing file contents in a specific directory with a number of files. I used greg to extract the criteria but need something to change it. Thanks ..Craig :) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Troubl