]>
git.scottworley.com Git - picsort/blob - slurp-pics
3 while read host path
;do
7 mkdir -p "$outdir" "$seendir/$outdir"
9 sftp
-v -P 19362 -i .slurp
-key "slurp@$host" <<< "cd $path"$'\n'"ls -1" |
11 while read filename;do
12 output_filename="$outdir/${filename/jpg/jpeg}"
13 if [[ -e "$output_filename" || -e "$seendir/$output_filename" ]];then
14 echo "skipping $filename" >&2
16 echo "getting $filename" >&2
17 echo "get -p $filename $output_filename"
20 } | sftp -v -P 19362 -i .slurp-key "slurp@$host"
21 for f in "$outdir"/*;do
24 rename-to-date "$outdir"/*