Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash tokenize string

For Space delimiter

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