Various Linux scripts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
417 B

#!/bin/bash
#Создан: Сб 03 май 2014 08:04:12
#Изменён: Ср 20 янв 2016 11:17:48
#Сортировка и переименование jpg-файлов по датам
BASE=${1:-.}
ls "${BASE}/*.JPG" && for i in "${BASE}/*.JPG"; {
mv -iv "$i" "${i/JPG/jpg}";
}
for file in "${BASE}/*.jpg"; {
exiftool -d "${BASE}/%Y.%m.%d/img_%Y.%m.%d_%H.%M.%S%%-c.%%e" "-filename<createdate" $file
}