I have shell script like –
while read -r line;
do
echo $line
done < file.txt
That’s working fine, but I need to prompt the user for input after each line read from the file.
I tried adding “read ” but that’s not working.
while read -r line;
do
echo $line
#prompt user here
read input_user
done < file.txt
Any thoughts? I’m open to using awk too.
Use a different FD for the loop’s
read.