Sorry for my previous post,
my answer is below
On Thursday 25 April 2002 15:41, Boris Zentner 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
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 -e 's/sub html_base.*//s' *.cgi
>
and it happily removes
On Thursday 25 April 2002 15:10, you wrote:
| 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' swi
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
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
But this command only erase one line at once.
And I want to erase all the lines in one ti