Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash tokenize string

For any delimiters, like ';'

$ string="john;is;17;years;old"
$ IFS=';' tokens=( $string )
$ echo ${tokens[*]}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #tokenize #string
ADD COMMENT
Topic
Name
9+9 =