a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
comment by Cumol
Cumol  ·  1773 days ago  ·  link  ·    ·  parent  ·  post: Why is my bash loop not working?

Your script solved the issue. I am not sure why but I guess I did overcomplicate things.

Is it possible for me to have both scripts in the same file (or combined)?

Can I simply put both of them in the same file and they would be run one after the other?





user-inactivated  ·  1773 days ago  ·  link  ·  

You could concatenate the scripts, but the only difference between your two scripts is the body of the loop, so you could just combine the loops. That would be cleaner. Or, as bhrgunatha suggested, use process substitution instead of generating mylist.txt then passing it to ffmpeg.