For example I have a git branch name feature/ABC-123-my-stuff
I want to just capture ABC-123 in this format.
I tried
cut -d "/" -f2 <<< "$branchName"
result in
ABC-123-my-stuff
but I want to only keep the string right after the /
and before 2nd -
What do I add / modify to achieve that?
NOTE: I am using zsh on MacOS