|Perl Monk, Perl Meditation|
Match Ip Address on cmd lineby sans-clue (Beadle)
|on Sep 09, 2011 at 04:56 UTC||Need Help??|
sans-clue has asked for the
wisdom of the Perl Monks concerning the following question:
Solaris grep is letting me down and admin rules prevent me from using gnu grep. I have a file that looks
I'd like to cat to pipe that file and do a perl regex to print only valid ip addresses.
cat file | perl -.......
and the output would in this case be
I looked around and just found entire scripts. thanks