#!/bin/bash
ifconfig|awk '/inet /{if($2!="127.0.0.1"){print $2;exit;}}'

