Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

split string in shell script

IN="bla@some.com;john@home.com"
arrIN=(${IN//;/ })
echo ${arrIN[1]}                  # Output: john@home.com
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #string #shell #script
ADD COMMENT
Topic
Name
2+4 =