/sbin/ifconfig | sed -n -e "s/^.*addr://g" -n -e "s/ Bcast.*//p" | grep -v '192.168.0.20'
Tuesday, March 1, 2005
Parse IP from ifconfig with sed (excluding your internal IP)
Subscribe to:
Post Comments (Atom)
/sbin/ifconfig | sed -n -e "s/^.*addr://g" -n -e "s/ Bcast.*//p" | grep -v '192.168.0.20'
No comments:
Post a Comment