Hi,
I would like to declare the array in shell scripting. And also i have add and remove some values from shell as well.
I have to know how to use these thinks by using for loop and while loop.
OS : SunOS
shell : bash
Thanks,
Mani
Hi,
I would like to declare the array in shell scripting. And also i have add and remove some values from shell as well.
I have to know how to use these thinks by using for loop and while loop.
OS : SunOS
shell : bash
Thanks,
Mani
Didn't get what you want exactly.
regards,
Ahamed
Something like this?
a[1]="ABC"
a[2]="CED"
a[3]="EFG"
for (( i=0; i<=3; i++ )); do echo ${a[$i]}; done