Bash tokenize string
For any delimiters, like ';'
$ string="john;is;17;years;old"
$ IFS=';' tokens=( $string )
$ echo ${tokens[*]}
Bunny Hop
For any delimiters, like ';'
$ string="john;is;17;years;old"
$ IFS=';' tokens=( $string )
$ echo ${tokens[*]}
For Space delimiter
$ string="john is 17 years old"
$ tokens=( $string )
$ echo ${tokens[*]}