unix shell programming question
Jonas Heyman
jonas at lkbpyr.UUCP
Mon Feb 26 05:18:32 AEST 1990
Hello,
Could anyone give me some help:
On the lines with "echo" I want to have the same output.
Each time the "for loop" goes trough I want to list $str1 and $str2.
How can I do that.
Sincerely Jonas.
----------------------------------------
str1="string 1"
str2="string 2"
...
...
...
echo $str1 #This is OK "string 1"
echo $str2 #This is OK "string 2"
for loop in 1 2
do
aa=$str$loop #Here I want "string 1" and "string 2"
echo $aa
echo $str$loop #Here I want "string 1" and "string 2"
done
-----------------------------------------
--
/jonas at lkbpyr.lkb.se/
More information about the Comp.unix.questions
mailing list