I am new to writing bash scripts (and not very good). So it would be great if I can get some explanatory help with my question.
The following is the bash script I have written to provide standard input to ./runnable (executable file) carrying input.aa as argument. I want to record output of this ./runnable input.aa in another file say, output. Any suggestions on how to reframe my code? If there is anything wrong with my script, please drop in suggestions.
#!/bin/bash
./runnable input.aa <<EOF
>2 #input I want runnable to take
>15
>7
>12
>16
>92
>18
EOF