document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/usr/bin/env bash
  2. # command line url-shorten
  3. # by using ur1.ca
  4. # $USER, Aug 2009
  5.  
  6. if [ -z $1 ];then
  7.    echo "insira a url a ser abreviada":
  8.    read URL
  9.    LONG=$URL
  10. else
  11.    LONG=$1
  12. fi
  13.  
  14. UR1=\'http://ur1.ca/\'
  15.  
  16. /usr/bin/env curl -s $UR1 -d"longurl=$LONG"| sed -e \'/Your ur1/!d;s: *::g;s:<[^>]*>::g;s:^.*Yourur1is\\:h:h:;\'
');