My shell is bash
and I need to write a script that runs a specific software for each input data in the several folders. For example:
gd2p.pl -i /home/WORKDIR/folder1/input1.o
Let's say that I have 20 folders in WORKDIR and each folder includes input files. How can I write the script which run the above codes for each folder and each input files automatically?