I need to process a loop continuously - once for each value in a file and then start over with the first value again.
list.txt has two values in it:
file1
file2
I need have a continous loop processing once for file1, then file2, then file1, then file2, etc. Currently, it processes file 1, then file2, then exits.
If I start with:
while :
do
for f in `cat list.txt`
do
commands...
done
done
It runs through successfully for file1, then file2, then reads file1 and file2 together on the third loop.
Any help would be appreciated.
list.txt has two values in it:
file1
file2
I need have a continous loop processing once for file1, then file2, then file1, then file2, etc. Currently, it processes file 1, then file2, then exits.
If I start with:
while :
do
for f in `cat list.txt`
do
commands...
done
done
It runs through successfully for file1, then file2, then reads file1 and file2 together on the third loop.
Any help would be appreciated.