Skip to content

Instantly share code, notes, and snippets.

@trongthanh
Created February 10, 2011 04:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trongthanh/819927 to your computer and use it in GitHub Desktop.
Save trongthanh/819927 to your computer and use it in GitHub Desktop.
Log my computer IP to a file shared on Ubuntu One
# 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