[CentOS] Define an alias with an embeded awk command

Tue Dec 15 06:58:11 UTC 2009
Larry Brower <larry-lists at maxqe.com>

On 12/14/2009 11:20 PM, Majian wrote:
> echo `ifconfig eth0 | grep 'inet addr:' |awk '{print $2}' | cut -c 6-

echo `ip addr |grep inet|grep -v 127.0.0.1|awk '{print $2}'|cut -d/ -f1`



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6672 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20091215/e9470536/attachment-0005.p7s>