Bash as input to Fortran
I have an Fortran 90 program which has two values it needs to read in from the shell.
If there was only one read, then I have found that the following script is possible in bash to automate running this f90 code many times...
echo $input | ./f90program
However, if I have two variables to feed into the f90program, I have found that trying...
echo "$input1 $input2" | ./f90program
...does not work, can anyone suggest a way to solve this minor problem?