#!/bin/sh /sbin/ifconfig $2 | grep "$1" | awk '{ print $2 }' > /tmp/$2_router