Answers for "split string, bash"

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 string and create array bash

IFS=', ' read -r -a array <<< "$string"
Posted by: Guest on April-17-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language