Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (19 sloc) 340 Bytes
#!/bin/sh
if [ -z "$1" ]
then
echo "Which folder do you want organize photos in?"
exit 1
fi
IFS=$'\n\t'
for i in $(find $1 -type d)
do
read -r -p "Do you want to organize $i? [y/N] " response
case $response in
[yY][eE][sS]|[yY])
jhead -autorot -n%Y%m%d-%H%M%S-%f $i/*
;;
*)
echo ""
;;
esac
done