Return to Snippet

Revision: 39951
at January 23, 2011 19:06 by ertbor


Initial Code
#!/bin/bash
MYIP=`curl -s 'http://checkip.dyndns.org' | sed 's/.*Current IP Address: \([0-9\.\.]*\).*/\1/g'`
echo $MYIP | pbcopy
/usr/local/bin/growlnotify 'IP address copied' -m "Address was: $MYIP"

Initial URL
http://hints.macworld.com/article.php?story=20110113070834584

Initial Description

                                

Initial Title
Get Public IP and copy it to Clipboard

Initial Tags
ip

Initial Language
Bash