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

Sample questions and answers for AWS Associate Solutions Architect Certification ---> AWS exam dumps