Преглед на файлове

sftp-into-eye: take filenames from stdin

master
Ivan Kozik преди 1 месец
родител
ревизия
408decf011
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +3
    -3
      sftp-into-eye

+ 3
- 3
sftp-into-eye Целия файл

@@ -14,10 +14,10 @@ wait-until-jobs-below() {
done
}

# e.g. ~/stash/YouTube/whitehouse
root=$1
# provide as stdin the output of e.g.
# es x find -t f -- ~/stash/YouTube | take-wanted-ids ~/dead-video-ids | rg '\.(mp4|webm|flv|video)$'

es x find -t f -- "$root" | take-wanted-ids ~/dead-video-ids | rg '\.(mp4|webm|flv|video)$' | while read i; do
while read i; do
echo $i
eye_path=$(path-to-eye-path "$i" | sed -r "s,$HOME/stash/,,g")
file_id=$(es x info -- "$i" | jq .id)


Зареждане…
Отказ
Запис