Created
February 18, 2012 02:01
-
-
Save jdorfman/1856871 to your computer and use it in GitHub Desktop.
just in case you need to convert many IPs from numbers to addresses
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 i in `cat ip-addresses`; do echo "SELECT INET_NTOA(${i});" |mysql -uanonymous |awk "NR==2" >> /tmp/ntoa; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment