Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 4 lines (2 sloc) 86 Bytes
#!/bin/sh
ip addr show dev $1|grep 'inet '|perl -pi -e 's/^.*inet ([0-9\.]+).*$/$1/'
Something went wrong with that request. Please try again.