| ||||||
| 5/19 |
| 2003/7/7-8 [Computer/SW/Languages/Perl] UID:28950 Activity:nil |
7/7 I want to use perl for some inplace substitution a la
perl -p -i.bak -e 's/pattern/replacement/g' but I want to know if
my pattern will be matched correctly. I've tried
perl -pe 'print if /pattern/' * but that just prints all the lines.
What's the right way to do this?
\_ -p implicitly prints the line. Try -n instead.
\_ thanks, is there a perl manual section that describes CLI opts?
\_ from "man perl"
perlrun Perl execution and options
so... "man perlrun"
\_ argggg.... thanks. |