Answers for "separate words in lines"

0

separate words in 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 "separate words in lines"

Browse Popular Code Answers by Language