Skip to content

Instantly share code, notes, and snippets.

@andytlr
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save andytlr/c192f7169e7323efddfb to your computer and use it in GitHub Desktop.

Select an option

Save andytlr/c192f7169e7323efddfb to your computer and use it in GitHub Desktop.
n=0
while read line ; do
let n=n+1
old_path='\/Users\/andytlr\/Dropbox\/Public\/Shots\/'
filename=`echo $line | sed -e "s/$old_path//g"`
mkdir -p ~/Dropbox/Public/shots/keep/
mv ~/Dropbox/Public/shots/$filename ~/Dropbox/Public/shots/keep/$filename
printf https://dl.dropboxusercontent.com/u/21267/shots/keep/$filename | pbcopy
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment