Timeline for Count number of elements in bash array, where the name of the array is dynamic (i.e. stored in a variable)
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 11, 2015 at 4:34 | comment | added | drwatsoncode | Thanks for replying, but your answer is what I already described under the section "Method 1: Copy the Array". The question also specifically stated that the array length should be determined "without resorting to making a fully copy of the array", which is exactly what you did. | |
| Nov 11, 2015 at 0:52 | history | answered | glenn jackman | CC BY-SA 3.0 |