]>
git.scottworley.com Git - picsort/blob - slurp-pics
68a2b126e69e9e24f5d671fc745863f1c0c8650c
3 while read host path
;do
7 mkdir -p "$outdir" "$seendir/$outdir"
9 sftp
-v -P 19362 -i .slurp
-key -oConnectTimeout=4 "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"/*