Advertisement
uriel1998

Untitled

Sep 24th, 2012
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. #!/bin/bash
  2. #Using CURL to access the bitly api
  3.  
  4. shorturl=$(curl -s --data "login=YOURLOGIN&apiKey=YOURAPIKEY&longUrl=$1&format=txt" http://api.bitly.com/v3/shorten)
  5. echo "$shorturl" | xsel -b -i
  6. xsel -o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement