Friday, September 29, 2017

linux command line filter for ip address matches



$ cat file.log |grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |sort -u

No comments:

Post a Comment