I have a bash script where I am running a c program using here documents because the c program expects inputs from the user.
so i have something like this
#!/bin/bash ./runnable inputfile.txt <<_END_ 2 4 3 4 3 3 2 _END_
now i want to send the output from the above command to some other file. just like we would do
ls > file.txt
is that possible?