in reply to Re: Filtering out IP addresses
in thread Filtering out IP addresses

perl -nle 's/\d+\./xxx./g; print' filename
As long we're writing one-liners, that should probably be
perl -ple 's/\d+\./xxx./g' filename
See -p in perlrun.

#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
    Oh, nice, I'd not been aware of -p yet. Thanks for the pointer!