in reply to Re: How to grep some string(IP:port) from text file and print into txt filein thread How to grep some string(IP:port) from text file and print into txt file
$ echo '| foo:bar ' | perl -nle'print for /\|\s+([\w.:]+)\s+/;' foo:bar [download]