Skip to content

Instantly share code, notes, and snippets.

@edsoncelio
Created July 11, 2019 16:13
Show Gist options
  • Save edsoncelio/be788fbff913daa7f48568fdb8b7b005 to your computer and use it in GitHub Desktop.
Save edsoncelio/be788fbff913daa7f48568fdb8b7b005 to your computer and use it in GitHub Desktop.
Bash script to show ip address using whiptail
#!/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