ibanix has asked for the wisdom of the Perl Monks concerning the following question:
Hi folks,
I'm on a Windows server with ActivePerl, but no grep. How can I make perl work like grep -- with the command line?
I tried perl -p "*.*" -e "print $_ if /regex/" and it's complaining about the *.*.
The line interface for perl isn't my forte, can anyone offer me help?
Thanks!
ibanix
$ echo '$0 & $0 &' > foo; chmod a+x foo; foo;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl as grep
by duff (Parson) on Dec 02, 2003 at 15:19 UTC | |
by tye (Sage) on Dec 02, 2003 at 18:36 UTC | |
Re: Perl as grep
by gjb (Vicar) on Dec 02, 2003 at 15:22 UTC | |
Re: Perl as grep
by shotgunefx (Parson) on Dec 02, 2003 at 16:23 UTC | |
Re: Perl as grep
by Abigail-II (Bishop) on Dec 02, 2003 at 16:20 UTC | |
by ibanix (Hermit) on Dec 02, 2003 at 18:33 UTC | |
by Anonymous Monk on Dec 02, 2003 at 18:55 UTC | |
Re: Perl as grep
by DrHyde (Prior) on Dec 02, 2003 at 15:23 UTC | |
Re: Perl as grep
by cored (Scribe) on Dec 02, 2003 at 15:47 UTC |
Back to
Seekers of Perl Wisdom