Skip to content

Instantly share code, notes, and snippets.

@douglasdollars
Created August 26, 2012 02:36
Show Gist options
  • Save douglasdollars/3473250 to your computer and use it in GitHub Desktop.
Save douglasdollars/3473250 to your computer and use it in GitHub Desktop.
Card ejection
card="/Volumes/EOS_DIGITAL" # Matches most Canon cards' default name
rm -rf $card"/DCIM"
echo ":: photo directory erased" # Ignores other dirs on the card
hdiutil eject -force $card
echo ":: memory card ejected"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment