Created
February 10, 2019 22:24
-
-
Save saqibameen/54dd6e4d5556d188a5fd7c2721b084a9 to your computer and use it in GitHub Desktop.
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
# 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