Created
December 17, 2014 20:49
-
-
Save john-g-g/35b286c7a9338433dd49 to your computer and use it in GitHub Desktop.
Convert Dropbox share link to link to actual file
This file contains 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
#!/bin/bash | |
url=$(echo %clipboard | sed 's/www.dropbox.com/dl.dropboxusercontent.com/g' | tr -d '\n') | |
echo "$url" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment