I run a linux command that sometimes asks for user input (press 1 or 2).
I always want to answer 1, how can I pass this value automatically ?
yes 1 | command