The value of a variable can be substituted into a script with:
$nameSo, for example, $editors will have the value:
vi xedit edYou can find the number of elements in a list with variable. For example:
elements=$#editorssets elements to ``3''.
var=()sets var to a list with no elements, so $#var is ``0'', whereas:
var=''sets var to an empty string, so $#var is ``1''.