Last active
December 10, 2015 15:19
-
-
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
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 | |
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