Good ideas and conversation. No ads, no tracking. Login or Take a Tour!
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.