I have a c++ executable file 'Score' that takes as input two user defined 'values'.
These values are some data in txt files. I run the program and save the output to a text file like this :
./Score data1.txt data2.txt >outdata1data2.txt
./Score data1.txt data3.txt >outdata1data3.txt
./Score data1.txt data4.txt >outdata1data4.txt
It is definitely possible. You will probably want to write a shell script similar to this:
#!/bin/bash for filename1 in /*.txt; do for filename2 in /*.txt; do ./Score "$filename1" "$filename1" > "out$filename1$filename2" done done