zsh split string code example
Example: zsh split string character by character
A="abcdefg"
echo $A[2] # Print character 2
echo $A[1,4] # Print 4 characters from character 1
A="abcdefg"
echo $A[2] # Print character 2
echo $A[1,4] # Print 4 characters from character 1