I am trying to run a program that uses two different files:
Program -command1 $file1 -command2 $file2
i have used the bash loop for one file successfully but when i use it as:
for file in *.ext
do
Program -command1 $file -command2 $file
done
It runs the same one file for both commands, looping to second file and doing the same thing for that one.
what i need the program to run both files individually for each command under one program run.