I have a bash script that employs the read command to read arguments to commands interactively, for example yes/no options. Is there a way to call this script i
read
You can also use printf to pipe the input to your script.
var=val printf "yes\nno\nmaybe\n$var\n" | ./your_script.sh