Skip to content

Instantly share code, notes, and snippets.

@john-g-g
Created December 17, 2014 20:49
Show Gist options
  • Save john-g-g/35b286c7a9338433dd49 to your computer and use it in GitHub Desktop.
Save john-g-g/35b286c7a9338433dd49 to your computer and use it in GitHub Desktop.
Convert Dropbox share link to link to actual file
#!/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