📅  最后修改于: 2022-03-11 14:50:26.787000             🧑  作者: Mango
Just use tr command for this purpose:
tr -s '[[:punct:][:space:]]' '\n'
Example for
cat file.txt | tr -s '[[:punct:][:space:]]' '\n'