Useful commands
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
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