Is there a way to pipe back to back values into a command? e.g. If I can
command.pl and want to pipe in
y to confirm (because it doesn't have a way to auto confirm)?
echo "y" | echo "response" | ./command.pl but it doesn't work because the ordering of the pipe is from left to right. In essence, I need to run the one pipe first, then pipe the next command after that. Is there a trick with parentheses or quotes or something else?