Answers for "split a string shell script"

1

split string in shell script

IN="[email protected];[email protected]"
arrIN=(${IN//;/ })
echo ${arrIN[1]}                  # Output: [email protected]
Posted by: Guest on November-23-2021
1

split bash string

IN="[email protected];[email protected]"
arrIN=(${IN//;/ })
Posted by: Guest on April-29-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language