Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Show Your Public IP Saved To Home Filename
- #+ < ** ip ** >
- # Your Ip Brought To You Easily By ITS
- # v1ral_its@netc.it
- # Define private command
- read priv_ip < <(wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>')
- # Define public Command
- read my_ip < <(curl -s ipinfo.io/ip)
- # Execute
- printf '\033[033mPublic IP: \033[m'
- echo $my_ip
- printf '\033[033mPrivate IP: \033[m'
- echo $priv_ip
- # Done
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement