Skip to content

Instantly share code, notes, and snippets.

@blahah
Last active August 29, 2015 14:02
Show Gist options
  • Save blahah/5d7502d101b7b1282c41 to your computer and use it in GitHub Desktop.
Save blahah/5d7502d101b7b1282c41 to your computer and use it in GitHub Desktop.
shorten multiple URLs with the bit.ly API in a unix one-liner
# have your URLs in a file called URLS
parallel -j1 curl -v 'http://api.bit.ly/shorten?version=2.0.1\&longUrl={}\&login=bitlyapidemo\&apiKey=ABC123' < URLS
@blahah
Copy link
Author

blahah commented Jun 6, 2014

you'll need to replace bitlyapidemo with your login name, and ABC123 with your API key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment