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