Stuff And Things
#!/bin/bashsudo ifconfig ${1-eth1} | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
Call me old fashioned, but I can't stand the wasted processes#!/bin/bashsudo ifconfig ${1-eth1} | awk -F'[ :]+' '/inet addr/ {print $4}'
Call me old fashioned, but I can't stand the wasted processes
ReplyDelete#!/bin/bash
sudo ifconfig ${1-eth1} | awk -F'[ :]+' '/inet addr/ {print $4}'