RE: How to write a page break character.- one more question

2003-12-22 Thread chetak.sasalu
reg exp matched the end of the file. Thanks, Daniel. -Original Message- From: Daniel Staal [mailto:[EMAIL PROTECTED] Sent: Monday, December 22, 2003 8:22 PM To: Perl Newbies Subject: RE: How to write a page break character.- one more question --As off Monday, December 22, 2003 9:15 AM

RE: How to write a page break character.- one more question

2003-12-22 Thread Daniel Staal
--As off Monday, December 22, 2003 9:15 AM +0530, [EMAIL PROTECTED] is alleged to have said: I have one more requirement, The last STATUS which occurs just prior to the file end should not be followed by a page break character. How can I code this in perl? --As for the rest, it is mine. Just to

Re: How to write a page break character.- one more question

2003-12-22 Thread Rob Dixon
Chetak Sasalu wrote: > > From: John W. Krahn [mailto:[EMAIL PROTECTED] > Sent: Saturday, December 20, 2003 3:33 PM > To: [EMAIL PROTECTED] > Subject: Re: How to write a page break character. > > > > Chetak Sasalu wrote: > > > > > > Hi, > > > &g

Re: How to write a page break character.- one more question

2003-12-22 Thread John W. Krahn
Chetak Sasalu wrote: > > Chetak Sasalu wrote: > > > > I want to search for the word "status" in a group of files in a > > directory and replace it with "status\n^L" where ^L is a page break > > chatacter, In vi I can type it in using cntrl+l. > > > > I want to do this by > > > > perl -p -i.old -e

RE: How to write a page break character.- one more question

2003-12-21 Thread chetak.sasalu
: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Saturday, December 20, 2003 3:33 PM To: [EMAIL PROTECTED] Subject: Re: How to write a page break character. Chetak Sasalu wrote: > > Hi, Hello, > I want to search for the word "status" in a group of files in a > directory and r

Re: How to write a page break character.

2003-12-21 Thread George Georgalis
>Chetak Sasalu wrote: >> I want to search for the word "status" in a group of files in a >> directory and replace it with "status\n^L" where ^L is a page break >> chatacter, In vi I can type it in using cntrl+l. if you really want to 'type' it in, you can type "" you can insert tabs in a regex wit

Re: How to write a page break character.

2003-12-20 Thread John W. Krahn
Chetak Sasalu wrote: > > Hi, Hello, > I want to search for the word "status" in a group of files in a > directory and replace it with "status\n^L" where ^L is a page break > chatacter, In vi I can type it in using cntrl+l. > > I want to do this by > > perl -p -i.old -e 's/^STATUS$/STATUS\n(pag

Re: How to write a page break character.

2003-12-20 Thread Robert Brown
Randy W. Sims writes: > On 12/20/2003 2:37 AM, [EMAIL PROTECTED] wrote: > > > Hi, > > > > I want to search for the word "status" in a group of files in a > > directory and replace it with "status\n^L" where ^L is a page break > > chatacter, In vi I can type it in using cntrl+l. > > > >

Re: How to write a page break character.

2003-12-20 Thread Randy W. Sims
On 12/20/2003 2:37 AM, [EMAIL PROTECTED] wrote: Hi, I want to search for the word "status" in a group of files in a directory and replace it with "status\n^L" where ^L is a page break chatacter, In vi I can type it in using cntrl+l. I want to do this by perl -p -i.old -e 's/^STATUS$/STATUS\n(pag

How to write a page break character.

2003-12-20 Thread chetak.sasalu
Hi, I want to search for the word "status" in a group of files in a directory and replace it with "status\n^L" where ^L is a page break chatacter, In vi I can type it in using cntrl+l. I want to do this by perl -p -i.old -e 's/^STATUS$/STATUS\n(page break character)/' * How can I "write" the p