About a year ago I posted an article about how to split into an array of values based on a given delimiter in bash.
The following is how to take that same string and split it on the first occurrence of the same user defined delimiter.
Both use the ‘read’ command, but in a slightly different way.
Instead of passing read the -a [aname] parameter which tells it that “The words are assigned to sequential indices of the array → Continue reading “Splitting a String in Bash on the FIRST Occurrence of a Character”