A short shell script that returns you your IPv4 address and its geolocation.
grepcommands --> 1
If you have previously installed the script, update your local copy like this:
$ cd ~/whereAmI/ $ git pull origin master
Also for those who created an alias, change the interpreter to shebang:
alias myip="/bin/sh ~/whereAmI/findmepls.sh"
$ cd ~ $ git clone https://github.com/trozler/whereAmI.git
I recommend adding the following alias to your bashprofile (
~/.bashrc should also work.
$ echo -e '\nalias myip="/bin/sh ~/whereAmI/findmepls.sh"' >> ~/.bash_profile $ source ~/.bash_profile
If you created the alias:
$ myip 88.3.356.944 - Palma, Balearic Islands, ES.
$ /bin/sh ~/whereAmI/findmepls.sh 88.3.356.944 - Palma, Balearic Islands, ES.
Lastly, if you are not connected to the internet, then well, you must be somewhere off the shoulder of Orion.