View Code? Open in Web Editor
NEW
A simple bash script to streamline productivity. This script will display your local IP in a nice, clean format as apposed to ifconfig.
License: GNU General Public License v3.0
local-ip.sh's Introduction
# local-ip.sh
# A simple bash script to streamline productivity.
# This script displays your internal IP in a clean format.
#
# EXAMPLE: ./ip.sh wlan0
# EXAMPLE: ./ip.sh eth0
#
# THIS SCRIPT USES THE FOLLOWING ONE-LINER:
# ifconfig wlan0 | grep 192 | colrm 26 | tr -d " inet"
#
# TRY IT WITH COMMAND SUBSTITUTION:
# myip=`ifconfig wlan0 | grep 192 | colrm 26 | tr -d " inet"`
# echo $myip
local-ip.sh's People
Contributors
Watchers