]>
git.scottworley.com Git - picsort/blob - slurp-pics
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"/*