Hello,
On a Sun Solaris 8 system in a Bourne shell script I want to run parallel do loops. I kinda want it to work like a two arrays.
As the script iterates through each of the FILES I would like to output the corresponding title from TITLES.
What is the easiest way to do this?
Thanks,
Michael42
On a Sun Solaris 8 system in a Bourne shell script I want to run parallel do loops. I kinda want it to work like a two arrays.
Code:
TITLES="title1 title2 title3"
FILES="file1 file2 file3"
for FILE in FILES
do
[COLOR=green]# I would like to output matching title here[/color]
ls $FILE
done
As the script iterates through each of the FILES I would like to output the corresponding title from TITLES.
What is the easiest way to do this?
Thanks,
Michael42