Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!sunic!lkbpyr!jonas From: jonas@lkbpyr.UUCP (Jonas Heyman) Newsgroups: comp.unix.questions Subject: unix shell programming question Message-ID: <504@lkbpyr.UUCP> Date: 25 Feb 90 18:18:32 GMT Organization: Pharmacia LKB Biotechnology, Uppsala SWEDEN. Lines: 33 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@lkbpyr.lkb.se/