Hi,
I am trying to do the following in bash:
OPTIONS = ( alfa beta gamma )
SUBOPTIONS_alfa = ( alfa0 alfa1 )
count=0
SETCOUNT = ${#SUBOPTIONS_${OPTIONS[$count]}[@]}
The SETCOUNT line gives a substitution error. I would like the
${OPTIONS[$count]} to be substituted with alfa so SETCOUNT is:
On 16 February 2012 08:43, Patrick Lists fedora-l...@puzzled.xs4all.nl wrote:
Hi,
I am trying to do the following in bash:
OPTIONS = ( alfa beta gamma )
SUBOPTIONS_alfa = ( alfa0 alfa1 )
count=0
SETCOUNT = ${#SUBOPTIONS_${OPTIONS[$count]}[@]}
The SETCOUNT line gives a substitution error.
On 16-02-12 12:13, Ian Malone wrote:
On 16 February 2012 08:43, Patrick Listsfedora-l...@puzzled.xs4all.nl wrote:
Hi,
I am trying to do the following in bash:
OPTIONS = ( alfa beta gamma )
SUBOPTIONS_alfa = ( alfa0 alfa1 )
count=0
SETCOUNT = ${#SUBOPTIONS_${OPTIONS[$count]}[@]}
The SETCOUNT
On 16 February 2012 15:41, Patrick Lists fedora-l...@puzzled.xs4all.nl wrote:
On 16-02-12 12:13, Ian Malone wrote:
On 16 February 2012 08:43, Patrick Listsfedora-l...@puzzled.xs4all.nl
wrote:
Hi,
I am trying to do the following in bash:
OPTIONS = ( alfa beta gamma )
SUBOPTIONS_alfa = (