I have a shell command with the following format:
my_cmd -I file1.inp -O file1.out
Where some processing is done on file1.inp and the results are stored in file1.out
In my main directory, I have many files with the format: *.inp and I would like to run this command for all of them and the store the results to *.out. Can I only use shell script to achieve this?