I have a bash script that accepts a parameter "$input" and (among other things) directs it into a program and collects the output.
Currently my line is:
OUTPUT=`./main.exe < $input`
But I get the following error:
$input: ambiguous redirect
What is the correct way to do it?