bash - reference array of folders without variable -


if can actual folder array to:

myarray=./* 

and can count elements of array this:

${#myarray[@]} 

how can without assign variable? this:

${#./*[@]} 

bash not have anonymous arrays. have create , populate array variable, then apply parameter expansion operator it. said, there alternatives using array; @sorontar provides 1 feasible.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -