Useful commands

From WTFwiki
Revision as of 14:35, 14 December 2018 by Anexit (talk | contribs)
Jump to navigation Jump to search

Parsing ipv4 addresses from a log file, sorting, counting;

grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" maillog | sort | uniq -c