I have something in bash like
bash
myArray=(\'red\' \'orange\' \'green\')
And I would like to do something like
echo ${
There is also one tricky way:
echo ${myArray[@]/green//} | cut -d/ -f1 | wc -w | tr -d ' '
And you get 2 Here are references