I have the following bash code (A.cpp, B.cpp and C.txt are filename in the current directory):
#!/bin/bash g++ A.cpp -o A g++ B.cpp -o B Inputfiles=(X Y Z U V