I want to run a cpp code a couple of times using a shell. Cpp code needs a text file as an input. I have been trying to pass the file to the cpp code no success.
The following is what I have done so far:
#! /bin/bash g++ 3Distance.cpp ./a.out echo file1.xml > 3d-1.xml
For later I like to use file$i.xml instead of file1.xml in the above.
any suggestion is very much appreciated.