Answers for "command separate words into lines"

1

command separate words into lines

Just use tr command for this purpose:
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 "command separate words into lines"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language