title: How to loop an executable command in the terminal in Linux?
body: <p>Let me first describe my situation, I am working on a Linux platform and have a collection of <code>.bmp</code> files that add one to the picture number from <code>filename0022.bmp</code> up to <code>filename0680.bmp</code>. So a total of 658 pictures. I want to be able to run each of these pictures through a .exe file that operates on the picture then kicks out the file to a file specified by the user, it also has some threshold arguments: lower, upper. So the typical call for the executable is:</p>
  
  <pre><code>./filter inputfile outputfile lower upper
  </code></pre>
  
  <p>Is there a way that I can loop this call over all the files just from the terminal or by creating some kind of bash script? My problem is similar to this: <a href="https://stackoverflow.com/questions/10740655/execute-a-command-over-multiple-files-with-a-batch-file">Execute a command over multiple files with a batch file</a> but this time I am working in a Linux command line terminal.</p>