hi all
iam not able use read command in the while loop in the following program
while read line
do
echo $line
echo "enter name"
read name
echo "your have entered $name"
done < work.txt
THE READ COMMAND INSIDE THE WHILE LOOP IS NOT WORKING, IS ANY OTHER WAY TO SOLVE THIS PROBLEM
Since read gets that file work.txt spooled in, it get's it's answers from it. Anyway maybe explain what you want to do - maybe there is an alternative way. I see no useful use of work.txt in this script.
hi thanks for the reply..
my work is done wit my code. but iam debugging the code.. so i just want to know what is happening in side the while loop one by one ... so that i can make my code efficient...