10.1.2.1 myhost 1-4-3-2/0
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
10.1.2.1
I looked around and just found entire scripts. thanks
In reply to Match Ip Address on cmd line by sans-clue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |