You are not logged in.
Hello
I got a huge list of IPs with attached port numbers
123.21.32.54:8060
123.21.22.22:9600
22.22.12.32:81
...
and I want to filter the :<port> away to ping the whole list with nmap.
Whats the most handy method?
Offline
awk -F : '{ print $1 }' <filename>
Last edited by karol (2010-08-17 18:10:43)
Offline
cut -d ":" -f 1
also works.
Offline