Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [[ -n ${(M)myarray:#-test.*} ]]; then
- echo "there are ${(M)#myarray:#-test.*} test flags"
- …
- % echo ${(M)#myarray[1,-1]:#-test*}
- 2
- % echo ${(M)#myarray[2,-1]:#-test*}
- 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement