How do I split a string on a delimiter in Bash?
I have this string stored in a variable: IN=”[email protected];[email protected]” Now I would like to split the strings by ; delimiter so that I have: ADDR1=”[email protected]” ADDR2=”[email protected]” I don’t necessarily need the ADDR1 and ADDR2 variables. If they are elements of an array that’s even better. After suggestions from the answers below, I ended up with … Read more