Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- Rede()
- {
- ipLocal=$(hostname -I | awk {'print $1'})
- ipExternal=$(curl --silent ifconfig.me)
- }
- clear
- while ((1))
- do
- Rede
- echo -e "\033[01;31m # IP Local: $ipLocal \033[01;37m"
- echo -e "\033[01;32m # IP Externo: $ipExternal \033[01;37m"
- echo ""
- sleep 3
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement