LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   need to read values in middle of reading value from a file (https://www.linuxquestions.org/questions/linux-general-1/need-to-read-values-in-middle-of-reading-value-from-a-file-771806/)

vasireddy.jaipal 11-26-2009 08:06 PM

need to read values in middle of reading value from a file
 
#!bin/bash

while read line
do
echo $line
read $variable
done <<filename

$variable is getting the same value which is being read from the file.
is there a way i can scan values from keyboard while reading a file line by line??

chrism01 11-26-2009 10:21 PM

Dupe of http://www.linuxquestions.org/questi...a-file-771801/

XavierP 11-27-2009 04:17 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 11:43 AM.