While being in loop, I am reading user input as below:
#!/bin/bash
while read line; do
echo $line
python find_entity.py $line
read -p "Enter your name : " choice
echo $choice
done < "q0.txt"
but still it does not ask for user input choice, rather writes True and just continue. What is wrong here?
#!/bin/bash -xand look at the output...-xflag is to turn on debugging so that you'll see what your parameters expands to. Look at the output and verify that$lineetc contains the expected values.