Created
December 16, 2010 02:46
-
-
Save matburt/742954 to your computer and use it in GitHub Desktop.
reverse lookup ip addresses as first field in logfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for each in `tail -n 100000 logfile | grep pattern | tr -s " " | awk '{print $1}' | sort | uniq`; do dig +short -x $each; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment