Hi, I'm a really noob to script languages and need help from experts.
I wrote a C program written that can take care of 40 digits precise division and I'm supposed to verify if the outputs are correct.
Inputs would be in .txt or .csv file (.txt preferred) and it contains 1000 different inputs.
What I want to do is to write a script in bash so that it takes inputs from .txt file and run the C program for 1000 times and append then to a .txt file.
C code runs as
./foo d1 d2 d3 d4... s1 s2 s3 s4...
and output is
o1 o2 o3 o4...
Input file format is
d1 d2 d3 d4...
s1 s2 s3 s4...
I'm really new to bash so I don't even know if it is possible or not.
Can anyone help me with this?