PAR段落格式化程序-如何在Windows命令行中使用
有一个非常智能和有用的段落格式化程序PAR段落格式化程序-如何在Windows命令行中使用,windows,command-line,formatting,paragraph,Windows,Command Line,Formatting,Paragraph,有一个非常智能和有用的段落格式化程序par()。我在Vim中使用过它,效果非常好。我想在Windows命令行中使用它。(我正在使用Windows7)。但是我得到了parerror:bad参数error。如何在 Windows命令提示符< /强>中使用PAR。我已经把它放在我的路径上了,所以它确实找到了它,也为我提供了帮助内容。但当我向它传递一个长文本流时,我不明白它为什么会出错 (因为,开发者网站上有一个par.exe。我很确定它是用来在Windows上工作的。) 我尝试的是: 我在Vim中成功
par
()。我在Vim中使用过它,效果非常好。我想在Windows命令行中使用它。(我正在使用Windows7)。但是我得到了parerror:bad参数error。如何在<强> Windows命令提示符< /强>中使用PAR。我已经把它放在我的路径上了,所以它确实找到了它,也为我提供了帮助内容。但当我向它传递一个长文本流时,我不明白它为什么会出错
(因为,开发者网站上有一个par.exe
。我很确定它是用来在Windows上工作的。)
我尝试的是:
我在Vim中成功地使用了它,效果非常好。请帮忙
我认为输入必须通过管道传输到工具中,而不是作为参数传递。因此,请尝试以下示例:
echo This is a long long paragraph. Please shorten it to 30 characters per line. But it does not work.| par w30
echo This is a long long paragraph. Please shorten it to 30 characters per line and also justify the text. But it does not work.| par 30j
echo This is a long long paragraph. Please shorten it to 30 characters per line. But it does not work.| par w30
echo This is a long long paragraph. Please shorten it to 30 characters per line and also justify the text. But it does not work.| par 30j