Created
February 10, 2011 04:05
-
-
Save trongthanh/819927 to your computer and use it in GitHub Desktop.
Log my computer IP to a file shared on Ubuntu One
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# log my computer IP to a file shared on Ubuntu One | |
/sbin/ifconfig $1 | grep "inet addr" | gawk -F: '{print $2}' | gawk '{print $1}' > "/home/thanh/Ubuntu One/office_ip" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment