[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ffmpeg in einer Schleife anwenden



Andre Tann:
> 
> Ich lese dort folgendes:
> 
>   while … ; do
>   …
>   done < <(find . -name '*.avi')
> 
> Was ist denn "< <(find…)" für eine Notation, also ich meine die zwei <?

Das ist eine Bash-Erweiterung. Der Output des Kommandos (find) wird in
eine Pipe geschrieben und stdin wird auf diese Pipe umgebogen. Stichwort
"process substitution":

http://tldp.org/LDP/abs/html/process-sub.html

Würde ich möglichst vermeiden, wenn das Skript auch mit anderen Shells
laufen soll. Ist aber ein ganz nettes Feature, gerade auch interaktiv
z.B. in Zusammenhang mit diff.

J.
-- 
When driving at night I find the headlights of oncoming vehicles very
attractive.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: