How to use "usbsuw" to get results automately

Dear experts,

I would like to automate the processing of usrbin data obtained from FLUKA using Shell script commands. When using the post-processing program “usbsuw,” it is necessary to manually input the names of the files to be processed and the names of the output files to be generated.

Is there a way to directly name input and output filenames as variables and automate the processing of these files within a Shell script without the need for manual input?

I tried :

usbsuw <inputfileName> outputfileName
echo "inputfileName"| usbsuw
echo " "
echo "outputfileName"

They did not work.

Dear Qinqin,

please have a look at this post:

Cheers,
David