Zsh - splitting a string into an array
Zsh - splitting a string into an array Intro There are a ton of different ways to split up a string in Zsh. This post attempts to show them with examples to help you build your own. I write Zsh scripts all the time, and still reference back to this guide, so there you go.
Using the split parameter expansion ${(s/x/)foo} From the Zsh docs on Parameter Expansion Flags (yeah - I know… how would anyone ever find that if they didn’t know where to look!
3 minutes to read