#!/bin/bash
#########################################################
#                                                       #
# This is BashStyle-NG 7.7                              #
#                                                       #
# Licensed under GNU GENERAL PUBLIC LICENSE v3          #
#                                                       #
# Copyright 2007 - 2009 Christopher Bratusek            #
#                                                       #
#########################################################

white=$(bs-ng-echo $white)
orange=$(bs-ng-echo $orange)
iceblue=$(bs-ng-echo $iceblue)
green=$(bs-ng-echo $green)

case $1 in

	*help | "" )

		echo -e "\n${white}Usage:\n"
	       	echo -e "${orange}showip${white} |${green} <interface> ${iceblue}[show ip-address for <interface>]\n"

	;;

	* )
		LANG=C /sbin/ifconfig $1 | grep 'inet addr:' | cut -d: -f2 | gawk '{ print $1}'

	;;

esac
