mrprajesh / blog

Rajesh's Blog
https://mrprajesh.github.io/blog
MIT License
0 stars 0 forks source link

blog/run-program-with-inputs-files #8

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Run program with inputs and write output files - Rajesh's Blog

Most of the time, We wanted to run an executable on several input instances and store the corresponding results using a shell script. The location of input and output folders are specified in the script. However, we wanted output file to be in a specific format. This below thing works irrespective of the depth of the folder location.

https://mrprajesh.co.in/blog/run-program-with-inputs-files.html

mrprajesh commented 2 years ago

OMG. Just learn that I could have used fileName=$(basename $f) instead of it. Thanks to ILUGC's 1D1C.