I have a data file "spectrum.tmp", which contains 15 lines and
each line is a name of file.
How can I read them line by line?
The followin is what I'm doing now. Is there any more elegant way?
count=1
awk 'NR=='"$count"'{print}' spectrum.tmp > numnrg.tmp
count=`expr $count + 1`
read tmpfil < specfil
cp $tmpfil weight
.
.
.
awk 'NR=='"$count"'{print}' spectrum.tmp > parameters.tmp
count=`expr $count + 1`
read tmpfil < parameters.tmp
echo "$tmpfil"
.
.
.
Thank you very much in advance.
Kevin Lu
--
Clinical Physics FAX : (416) 926 - 6566
Ontario Cancer Institute Toronto, ON. Canada M4X 1K9