Mercurial > repos > other > usr-local-bin
comparison rename-photos @ 7:094d86b01003
Rename all DSC pics, underscore or not
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 08 Aug 2015 21:05:13 +0100 |
parents | e85e3470a41e |
children | d45ad0c070de |
comparison
equal
deleted
inserted
replaced
6:7c8b5c5f0fb7 | 7:094d86b01003 |
---|---|
1 #! /bin/bash | 1 #! /bin/bash |
2 | 2 |
3 DATE_PREFIX=$(date +Y%Y_%m) | 3 DATE_PREFIX=$(date +Y%Y_%m) |
4 | 4 |
5 rename SAM_ ${DATE_PREFIX}_SAM_ SAM_*.JPG | 5 rename SAM_ ${DATE_PREFIX}_SAM_ SAM_*.JPG |
6 rename DSC_ ${DATE_PREFIX}_DSC_ DSC_*.JPG | 6 rename DSC ${DATE_PREFIX}_DSC DSC*.JPG |
7 rename IMG_ ${DATE_PREFIX}_IMG_ IMG_*_*.JPG | 7 rename IMG_ ${DATE_PREFIX}_IMG_ IMG_*_*.JPG |
8 rename PANO_ ${DATE_PREFIX}_PANO_ PANO_*_*.JPG | 8 rename PANO_ ${DATE_PREFIX}_PANO_ PANO_*_*.JPG |
9 rename JPG jpg ${DATE_PREFIX}*.JPG | 9 rename JPG jpg ${DATE_PREFIX}*.JPG |