Mercurial > repos > other > usr-local-bin
diff rename-photos @ 0:e85e3470a41e
Initial commit of useful scripts
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 02 Aug 2014 19:31:02 +0100 |
parents | |
children | 094d86b01003 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rename-photos Sat Aug 02 19:31:02 2014 +0100 @@ -0,0 +1,9 @@ +#! /bin/bash + +DATE_PREFIX=$(date +Y%Y_%m) + +rename SAM_ ${DATE_PREFIX}_SAM_ SAM_*.JPG +rename DSC_ ${DATE_PREFIX}_DSC_ DSC_*.JPG +rename IMG_ ${DATE_PREFIX}_IMG_ IMG_*_*.JPG +rename PANO_ ${DATE_PREFIX}_PANO_ PANO_*_*.JPG +rename JPG jpg ${DATE_PREFIX}*.JPG