Skip to content

Instantly share code, notes, and snippets.

@rushipkar90
Created September 25, 2015 16:39
Show Gist options
  • Save rushipkar90/13de2398f3e365e735ce to your computer and use it in GitHub Desktop.
Save rushipkar90/13de2398f3e365e735ce to your computer and use it in GitHub Desktop.
linkspam.sh
#!/bin/sh
for i in `cat /etc/userdomains| cut -d":" -f1 | grep -v \*`; do grep $i.zip /var/log/messages; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment