view rename-photos @ 10:4158847b0f18

Back up additional websites that are in Mercurial
author IBBoard <dev@ibboard.co.uk>
date Wed, 31 Aug 2016 17:20:08 +0100
parents 094d86b01003
children d45ad0c070de
line wrap: on
line source

#! /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