Created
January 5, 2013 19:51
-
-
Save roylines/4463299 to your computer and use it in GitHub Desktop.
finds mounted DCIM directories and copies all jpgs
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 | |
set -e | |
cp -v $(find `mount | grep vfat | cut -d' ' -f3` *.jpg | grep DCIM) . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment