I'm writing a Bash script in which I read a file line by line ( well, <(find /home/user/ -iname "*.MP4")
to be exact ) , and for each line I execute ffmpeg
, so I'm doing something like this:
while read -r line; do
ffmpeg -i "$line" [ MORE OPTIONS ... ]
done < <(find /home/user/ -iname "*.MP4")
Though, for some reason, only the first line is being processed successfuly.
Any idea why my code ignores all other lines ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…