Skip to content

Instantly share code, notes, and snippets.

@stevenocchipinti
Last active December 10, 2015 15:19
Show Gist options
  • Save stevenocchipinti/4453912 to your computer and use it in GitHub Desktop.
Save stevenocchipinti/4453912 to your computer and use it in GitHub Desktop.
A really simple bash script to move photos from the memory card to the computer
#!/bin/bash
DATE=`date +%Y%m%d`
SDCARD="/media/steve/NIKON D90/DCIM"
mkdir -p $DATE/{jpg,raw}
find "$SDCARD" -name "*.JPG" -exec mv -v {} "$DATE/jpg" \;
find "$SDCARD" -name "*.NEF" -exec mv -v {} "$DATE/raw" \;
notify-send "Finished transferring photos!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment