Mercurial > repos > other > usr-local-bin
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e85e3470a41e |
---|---|
1 #! /bin/bash | |
2 | |
3 DATE_PREFIX=$(date +Y%Y_%m) | |
4 | |
5 rename SAM_ ${DATE_PREFIX}_SAM_ SAM_*.JPG | |
6 rename DSC_ ${DATE_PREFIX}_DSC_ DSC_*.JPG | |
7 rename IMG_ ${DATE_PREFIX}_IMG_ IMG_*_*.JPG | |
8 rename PANO_ ${DATE_PREFIX}_PANO_ PANO_*_*.JPG | |
9 rename JPG jpg ${DATE_PREFIX}*.JPG |