Decoding short URLs

If you're also fed up of URL shorteners, especially when trying to analyze a bunch of links, simply put the following command line in a file, make it executable, and it shall then decode your bit.ly / tinyurl URLs: curl -I $1 -s | grep Location | cut -d ' ' -f2, for instance:

Alexandre-Passants-MacBook-Pro:code alex$ decodr http://bit.ly/26KFpk
http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B8CY1-4TVY5PW-1...