#! /bin/bash

# i don't understand why there's no better way. ifconfig sucks.

[ -z $1 ] && echo "usage $0 <iface>" && exit
/sbin/ifconfig $1 | grep 'inet addr' | awk '{ print $2 }' | cut -d : -f 2

