Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

split sh string

#YOURSTRING="this_is_an_example"
#output:
#this
#is
#an
#example
for i in $(echo $YOURSTRING | tr "_" "
")
do
	echo $i
done
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #sh #string
ADD COMMENT
Topic
Name
2+6 =