quick bash scripting question

I am sort of a newbie at bash scripting and am trying to figure out why this doesn't work. How do I achieve this?

thanks


Code:
user1_name=smurf
user1_proc=5
:<<COMMENT
user2_name=
user2_proc=
user3_name=
user3_proc=
user4_name=
user4_proc=
user5_name=
user5_proc=
user6_name=
user6_proc=
user7_name=
user7_proc=
user8_name=
user8_proc=
COMMENT

n=1
echo $user$n_name
echo $user$n_proc

The echo's are obviously not returning anything

 

 

 

 

Top