]>
git.scottworley.com Git - picsort/blob - slurp-pics
77d3314087d824cb10b074984e5ae182755519e5
3 while read host path
;do
8 sftp
-v -P 19362 -i .slurp
-key "slurp@$host" <<< "cd $path"$'\n'"ls -1" |
10 while read filename;do
11 output_filename="$outdir/${filename/jpg/jpeg}"
12 if [[ -e "$output_filename" ]];then
13 echo "skipping $filename" >&2
15 echo "getting $filename" >&2
16 echo "get -p $filename $output_filename"
19 } | sftp -v -P 19362 -i .slurp-key "slurp@$host"
20 rename-to-date -l "$outdir"/*