On Mon, 06 Jul 2020 17:58:08 +0200, Benny Pedersen stated: >Jerry skrev den 2020-07-06 17:31: > >> <code snippet> >> bzgrep -e auth=0/1 "/var/log/maillog" | sed >> 's/.*\[\([^]]*\)\].*/\1/g' | sort -V | uniq > "/tmp/Bad_IP.txt" >> </code snippet> > >sort | uniq vs sort -u, one less pipe > >so "sort -uV" can replace one pipe
Thanks, Benny. I wrote that several years ago and had not looked at it since. I will make the change. -- Jerry "I never slept with an ugly woman, but I sure woke up with a few."
pgpEivgDvS7Ix.pgp
Description: OpenPGP digital signature