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
--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
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
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
: 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
>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
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
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.
> >
> >
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
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
10 matches
Mail list logo