#!/bin/sh echo -n $(ifconfig | nawk '/inet addr:130/{printf "%s", substr($2, index($2, ":") + 1)}') .