Replace variable with its value while printing

Hi
I have a file in which there is list of files.
eg:

$path1/file1
$path1/file2
$path2/file3

I am trying to read this file in other script.However the value of variable i.e. $path1 and $path2 is not replaced by its value.
How to do it ?

I am trying:

 
while read line
do
echo $line 
done<$InputFile>Temp2.tmp

$path1 and $path2 are global variables

Try,

while read line
do
eval echo $line 
done<$InputFile>Temp2.tmp

Thnks man ! :b:
Its workin gr8 for me...:slight_smile:

I m just lovin UNIX as so big things can be done by so small commands :D;)