Shell scripts and one liners
Friday, July 17, 2015
Current IP Address One-liner
alias
myip
=
'/sbin/ifconfig | sed -n
"/wlan0/{n;s/.*inet addr://;s/ .*\$//p}"
'
Change wlan0 to your favorite ip addressed device.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment