Advertisement
alexs77

is.gd Short URL Script

Sep 26th, 2011
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #! /bin/sh
  2.  
  3. # Mach mit Hilfe von http://is.gd eine Kurz URL für die
  4. # als Parameter übergebenen URLs
  5.  
  6. baseurl="http://is.gd/create.php?format=simple"
  7. for URL in "$@"; do
  8.     curl -s --data-urlencode "url=$URL" "$baseurl"
  9.     echo
  10. done
  11.  
  12. exit $?
  13. # EOF #
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement