Useful commands

From WTFwiki
Revision as of 15:44, 19 December 2018 by Anexit (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 | sort -n