Created
July 11, 2019 16:13
-
-
Save edsoncelio/be788fbff913daa7f48568fdb8b7b005 to your computer and use it in GitHub Desktop.
Bash script to show ip address using whiptail
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
#!/bin/bash | |
whiptail --title "Mostrar IP" --msgbox "O ip da maquina eh $(ip addr show wlan0 | grep inet -m1 | cut -d' ' -f6)" 10 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment