]>
git.scottworley.com Git - picsort/blob - pic-mv
3 destdir
=/some
/path
# Optional: Fill this in here.
7 while getopts d
:e
:r
: opt
;do
14 shift `expr $OPTIND - 1`
20 max
=$(ls "$destdir" | sed -rn "s/^$name ([0-9]+).jpeg$
/\
1/p
" | sort -n | tail -n1)
27 out="$destdir/$name $number.jpeg
"
29 if [[ "$file" == *.NEF ]];then
31 NEFout="$destdir/$name $number.NEF
"
32 if [[ "$rotate" ]];then
33 numeric_exposure=$(dc <<< "2k $exposure 4 / 3.5-p")
34 pics-run-ufraw "$numeric_exposure" "$file" "$out" "$rotate"
36 mv -vi "$exposure/$base.jpeg
" "$out"
38 touch -r "$file" "$out"
39 mv -vi "$file" "$NEFout"
42 if [[ "$rotate" ]];then
43 sed -i "s
/^
# ROBOTS_INSERT_THINGS_HERE\$/\"$name $number.jpeg\" => $rotate,\n&/" "$destdir/rotations.php"