Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

separate words in lines bash

Just use tr command for separating words output into separate lines:
tr -s '[[:punct:][:space:]]' '
'
Example for
cat file.txt | tr -s '[[:punct:][:space:]]' '
'
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #separate #words #lines #bash
ADD COMMENT
Topic
Name
4+6 =