read values in middle
Hi thanks for ur response
variable is just a input needed from the key board not from the file,but its not allowing me to take input from keyboard,what i mean is variable is getting the same value in $line.what i exactly wanted is,i want to take input from keyboard while iam reading a file line by line.
After almost searching for an hour i found out the solution,which is working perfect,now variable is able to get input from keyboard
But can anyone please tell me whats the functionality of < /dev/tty??i just dont want to do things blindly
while read line
echo $line
read variable < /dev/tty
done < file name
Last edited by vasireddy.jaipal; 11-27-2009 at 02:37 PM.
|