I have a bash script with a construction like this:
while read foo bar baz; do echo "Processing $foo $bar $baz" # more code here done < /etc/somefile
Inside the loop, I would like the script to wait for keyboard input (basically just "press Enter to continue". However, the following code inside the loop
echo "Press [ENTER] to continue" read -s
doesn’t cause the script to stop there—apparently it takes its input from the supplied file rather than the keyboard. How can I force it to read from the keyboard?