Ver código fonte

sftp-into-eye: take filenames from stdin

master
Ivan Kozik 1 mês atrás
pai
commit
408decf011
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      sftp-into-eye

+ 3
- 3
sftp-into-eye Ver arquivo

@@ -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)


Carregando…
Cancelar
Salvar