I was trying to run a program in Linux with syntax like this:
BET2 <input file> <output file>
This program would take an image and perform some preprocessing on it then save to a new file. Now I could run the program correctly. However, I have about 1 million images and I don't want to run them one by one manually.
So, my question is, is there any way I could do the following:
- find all the images (.jpg file) under the current directory
- let each image (something.jpg) be the input of the preprocessing program and name the output with something_processed.jpg