Last active
August 29, 2015 14:02
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you'll need to replace
bitlyapidemowith your login name, andABC123with your API key