colorized output of ips()

pull/307/head
Jason Tarasovic 2014-06-28 18:35:44 -05:00
parent c9c4b6ca3d
commit c92300032d
1 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,11 @@ ips ()
{
about 'display all ip addresses for this host'
group 'base'
ifconfig | grep "inet " | awk '{ print $2 }'
resp=$(ifconfig | grep "inet " | awk '{ print $2 }')
for r in $resp
do
echo -e "`echo $r | cut -d: -f1`: ${echo_bold_green}`echo $r | cut -d: -f2` ${echo_normal}"
done
}
down4me ()