Answer the question
In order to leave comments, you need to log in
Error when starting Bash in WSL (Syntax error)?
Hello! An error occurs when trying to run this wonder in WSL.
app.sh: 5: Syntax error: word unexpected (expecting "do")
ad=/path/endfile.mp4
clips_in=/path/
clips_out=/tmp/
for clip in $clips_in/*.mp4; do
nm=`basename $clip .mp4`
cat | ffmpeg -f concat -i - -c:v copy -c:a copy $clips_out/${nm}_out.mp4 << EOF
file $clip
file $ad
EOF
done
Answer the question
In order to leave comments, you need to log in
Damn, well, you were banned in Google, or what?
https://www.cyberciti.biz/faq/bash-for-loop/
Look at the syntax:
for VARIABLE in $(Linux-Or-Unix-Command-Here)
do
command1
command2
commandN
done
$clips_in/*.mp4
'll need to call find with this parameter instead; but it is not exactly
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question