Skip to content

Instantly share code, notes, and snippets.

@mrampton
Created April 11, 2011 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrampton/914032 to your computer and use it in GitHub Desktop.
Save mrampton/914032 to your computer and use it in GitHub Desktop.
Simple one line shell command to create symlinks for Dropbox -> iTunes/Podcasts folder
#!/bin/bash
HOME=/Users/username #replace username with your actual username
ITDIR=$HOME/Music/iTunes/iTunes\ Media/Podcasts/
DBDIR=$HOME/Dropbox/Podcasts/
rm -rf $DBDIR/* find “$ITDIR” -type f -size -39999k -print0 | xargs -0 -I file ln -s file $DBDIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment