Question: I want to write a shell script. I have a .exe file called.calculate.exe, I want to get the data from another .txt file line by

I want to write a shell script. I have a .exe file called.calculate.exe, I want to get the data from another .txt file line by line as the argument for the calculate.exe and capture the output to another .txt file. that is inpu.txt -->calcualte.exe--> output.txt How to do it, The .calcualte.exe does not accept directly input argument in the command line that is "./calculate.exe 1 2 3" is not work I have to type ./calculate.exe first then input 1 2 3 manually.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!