Using ‘Array Variables’ in Shell Scripting

To the Linux Hosting professionals, Array provides a method of grouping a set of variables. Professionals can create a single array variable and store the other variables.

Syntax: $ name[index] = value;
Example:
$ fruit [0] = apple;
$ fruit [1] = orange;

Rate this post:


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...