Thread: Goo.gl
View Single Post
Old 10-02-2010, 01:09 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,304
Quote:
Originally Posted by GetSCORECash View Post
So have you gone to http://goo.gl/ from google.
Code:
#!/bin/bash

# goo.gl shell script for creating short urls

URL=$1
if [ -n "$URL" ]; then
curl -s -d "&url=${URL}" http://goo.gl/api/url | sed -e 's/{"short_url":"//' -e 's/","added_to_history":false}//'
else
echo "usage: goog.sh {URL}"
fi
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote