Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

split string into lines

Just use tr command for separating words output into separate lines:
tr -s '[[:punct:][:space:]]' '
'
Example for
cat file.txt | tr -s '[[:punct:][:space:]]' '
'
 
PREVIOUS NEXT
Tagged: #split #string #lines
ADD COMMENT
Topic
Name
2+5 =