Useful commands

From WTFwiki
Revision as of 15:34, 14 December 2018 by Anexit (talk | contribs) (Created page with "Parsing internet addresses from a log file, sorting, counting; grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" maillog | sort | uniq -c")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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