Skip to main content

All Questions

Tagged with
7 votes
2 answers
10k views

Find array length in zsh script

Is there a way to find the length of the array *(files names) in zsh without using a for loop to increment some variable? I naively tried echo ${#*[@]} but it didn't work. (bash syntax are welcome ...
Cristiano's user avatar