Re: "Convert" perl command line to simple script
- From: Paul Lalli <mritty@xxxxxxxxx>
- Date: Thu, 28 Jun 2007 09:50:46 -0700
On Jun 28, 12:47 pm, Paul Lalli <mri...@xxxxxxxxx> wrote:
$ perl -MO=Deparse -pi -e 's/..\index/index/g' *.html
LINE: while (defined($_ = <ARGV>)) {
s/..index/index/g;}
continue {
print $_;
}
Hrm. Accidentally truncated my output.... the start of that code
should include
BEGIN { $^I = ""; }
which is the effect of the -i parameter.
Paul Lalli
.
- References:
- "Convert" perl command line to simple script
- From: bluez34me
- Re: "Convert" perl command line to simple script
- From: Paul Lalli
- "Convert" perl command line to simple script
- Prev by Date: Re: "Convert" perl command line to simple script
- Next by Date: Re: Oh great gurus of the list, I need help with a regular expression please
- Previous by thread: Re: "Convert" perl command line to simple script
- Next by thread: Re: "Convert" perl command line to simple script
- Index(es):