in reply to Re: Filtering out IP addresses
in thread Filtering out IP addresses
As long we're writing one-liners, that should probably beperl -nle 's/\d+\./xxx./g; print' filename
See -p in perlrun.perl -ple 's/\d+\./xxx./g' filename
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Filtering out IP addresses
by AppleFritter (Vicar) on Jul 22, 2014 at 22:06 UTC |