Skip to content

Instantly share code, notes, and snippets.

@roylines
Created January 5, 2013 19:51
Show Gist options
  • Save roylines/4463299 to your computer and use it in GitHub Desktop.
Save roylines/4463299 to your computer and use it in GitHub Desktop.
finds mounted DCIM directories and copies all jpgs
#!/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