I want to write a script, which automates the following procedure: Every week I copy about 5-10 video files to a directory and delete the audio stream of each file, using avcodec. I thought this was a good starting point to write my first script in bash. It should check the filenames in the directory (00001.MTS,00002.MTS,...) and execute the command for each file. I come from python and matlab, where I would be able to write this script using a for or a while loop.
I would be glad to not get the finished code for my problem, but a few links where I can find the necessary information.