I have a file "in" that contains:
a b c
I run the following command:
cat in | while read el; do select yn in "yes" "no"; do echo $yn; done; done;
And get the following output:
1) yes 2) no #? #? #?
What I want is to be able to type 1 or 2 at each iteration. What do I need to do differently to make this work?