Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# The IPs inside input.txt file.
75.72.7.215
216.189.129.6
38.88.189.58
# Using the `xargs` command to perform lookup for each of the IP.
cat input.txt | xargs -I% curl http://ipinfo.io/%/country
# Output.
US
US
US
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.