sudo apt-get install curl
sudo pacman -Sy curl
Indirizzo IP
curl -s www.myip.it | grep "Your IP address" | sed -e 's/<\/b>/ /g' | awk '{print $5}'
Città in cui ci troviamo
curl -s www.myip.it | grep "City" | sed -e 's/<\/b>/ /g' | sed -e 's/<br>/ /g' | awk '{print $3}'
Nessun commento:
Posta un commento