Hi everybody,
Sample file:
1
2
3
4
My script:
cat file |
while read abc
do
echo "Do you want to continue with $abc"
read answer
done
The problem is "while read abc" will get 1, "read answer" will get 2
instead of waiting for user input from a keyboard. Is there a way to
tell read or any other command to wait for user input instead of
reading the next value from a file?
Thanks,
Greg