[wellylug] Regex, replace stuff in command line help...
David Antliff
david.antliff at gmail.com
Thu Jun 29 10:27:24 NZST 2006
On Thu, 29 Jun 2006, Jo Booth wrote:
> Tried:
> perl -pe 's/profile\?u\=(.*)"[.]/${1}/' *
perl -p prints out all lines:
$ man perlrun
...
-p
...
Note that the lines are printed automatically.
perl -n will work better I suspect?
Also, you probably don't want to sub, rather:
$ perl -ne 'print "$1\n" if /profile\?u\=(.*)/' *
--
David.
More information about the wellylug
mailing list