I have a bash script like this:
#some commands
#.....
read answer
#....
#Other commands
the answer should be yes or no.
I want to run the script and bypass reading answer giving it the value yes. But I can't edit the script's code.
Is there anyway to do that using parameters or some bash tools??
echo "yes" | ./script.shwould work.