in my script 

n=alben

I wanted to get the second character of $n which is "l". how can I do this?

also in my script 

for ((i=1;i<10;i++))
do
        r[$i]=$i
        echo $r[$i]
done

I wanted to have array r[1]=1, r[2]=2 and so on.

how do we do this in bash?

thanks

-- 
Alben Benavente Alteza 
Information Systems Security and Internet Services Administration
Information Systems Department / Philippine Airlines 

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to