Answers for "split words into lines"

0

split words into lines

Just use tr command for separating words output into separate lines:
tr -s '[[:punct:][:space:]]' '\n'
Example for
cat file.txt | tr -s '[[:punct:][:space:]]' '\n'
Posted by: Guest on October-22-2020

Code answers related to "split words into lines"

Browse Popular Code Answers by Language