On Thursday 25 April 2002 15:41, you wrote:
| Hi,
|
| Am Donnerstag, 25. April 2002 15:20 hast Du geschrieben:
| > exact, that's it.
| > but i've got the solution to that problem (i forgot to put the trailing
| > 's' in my post, but i used it and it did not work)
| > the solution is:
| > perl -p0i
On Thursday 25 April 2002 15:52, Bob Showalter wrote:
| > -Original Message-
| > From: Bob Showalter [mailto:[EMAIL PROTECTED]]
| > Sent: Thursday, April 25, 2002 9:46 AM
| > To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
| > Subject: RE: help about perl -pi -e
| >
> -Original Message-
> From: Bob Showalter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 25, 2002 9:46 AM
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: help about perl -pi -e
>
> ...
>
> Do you want to delete all the lines in each
> -Original Message-
> From: Alain [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 25, 2002 4:25 AM
> To: [EMAIL PROTECTED]
> Subject: help about perl -pi -e
>
>
> Hello all,
>
> I've the following problem:
> I need to erase about 150 lines (always the same lines) at
> the end of a
I'm not quite sure what you're trying to do with this... but from what
you've provided, the regular expression you wrote will only remove text
matching "sub html_base" on a single line -- and not even the
newline at the end. The '-pi' switches will grab a single line at a time
from the cur
On Thu, Apr 25, 2002 at 05:02:10AM -0700, John W. Krahn wrote:
> Michael Lamertz wrote:
> >
> > A.
> > perl -p0i -e 's/sub html_base.*//s' *.cgi
> >
> > reads the whole file in one
>
> > (-0 means $/ = \000),
>
> \000 is a reference to a numeric literal, "\000" is the null character
> whic
Michael Lamertz wrote:
>
> A.
> perl -p0i -e 's/sub html_base.*//s' *.cgi
>
> reads the whole file in one
perldoc perlrun
[snip]
-0[digits]
specifies the input record separator (`$/') as an
octal number. If there are no digits, the null charĀ
acter is the separator. Oth
On Thu, Apr 25, 2002 at 10:25:18AM +0200, Alain wrote:
> Hello all,
>
> I've the following problem:
> I need to erase about 150 lines (always the same lines) at the end of a serie
> of files.
> What I have done in the shell is:
> #perl -pi -e "s/sub html_base[\s\S]*//" *cgi
2 options:
A.
p