Here's a cute one that has me stumped.
user1=x1
user2=x2
for count in 1 2
do
echo "User $count is: $user\{$count\}"
done
This obviously doesn't work and what I want for the output is:
User 1 is: x1
User 2 is: x2
Either Bourne or Korne is fine.
--
Bill Irwin - The Westrheim Group - Vancouver, BC, Canada
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uunet!twg!bill 604-431-9600 (voice) | Your Computer