stanlo
Search This Blog
Tuesday, April 14, 2015
Match IP numbers with regex.
Print any IP address talking on port 21 in coming or out going.
Change the port number to any port that needs to be matched.
netstat -na | perl -ne '/((\d{1,3}\.){4}
21
)/ &&
print ;'
1 comment:
Unknown
said...
Nice one Stan! :-)
6:33 pm
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
1 comment:
Nice one Stan! :-)
Post a Comment