memerintahkan kata -kata terpisah menjadi baris

Just use tr command for this purpose:
tr -s '[[:punct:][:space:]]' '\n'
Example for
cat file.txt | tr -s '[[:punct:][:space:]]' '\n'
Armandres