Linux-下-txt-to-word-txt转换成word-pandoc

#CentOS
#yum -y install pandoc
#Fedora
#dnf -y install pandoc
#txt to word
#pandoc换行无法识别,可添加多个空格,会替换为换行

sed -i "s/$/\ \ \ /g" *.txt

pandoc -s xxxxxx.txt -o xxxxxx.doc
pandoc -s yyyyyy.txt -o yyyyyy.doc