Quote:
Originally Posted by GetSCORECash
|
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
