Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
quick ISP lookup
#!/bin/bash
# USE
# - Save as bulk.sh, then run the commands
# - chmod +x bulk.sh
# - ./bulk.sh ip_addresses.txt
# It reads the ip_address.txt line by line,
# does a whois request on each line, and looks
# for the term 'netname' in each whois.
while read line
do
whois $line | grep netname
done < $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment