Answers for "how split string in bash"

1

split string and create array bash

my_array=($(echo $string | tr "," "\n"))
Posted by: Guest on April-17-2020
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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language