declare arrays

[root@test1 ~]# declare -a PROD[0]="items" PROD[1]="motels" PROD[2]="teen"
[root@test1 ~]# echo "${PROD[1]} "
motels
[root@test1 ~]# echo "${PROD[2]} "
teen
[root@test1 ~]# echo "${PROD[1]} "
motels
[root@test1 ~]# echo "${PROD[0]} "
items
[root@test1 ~]# echo $PROD --> by default showing array[0]
items

Comments

Popular posts from this blog

How to delete SEA in VIOS

Webmin configuration for LDAP

CPU speed webpage "http://www.spec.org/cpu2006/results/cint2006.html"