#!/bin/sh /sbin/ifconfig eth0 | awk '/inet addr/ { split($2, x, /:/); printf "%s", x[2]; exit;}'