phantompacket / local-ip.sh

A simple bash script to streamline productivity. This script will display your local IP in a nice, clean format as apposed to ifconfig.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# 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

About

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


Languages

Language:Shell 100.0%