4

我正在使用命令

cat ~/2014-02-06_BP.txt | mailx -s "formatted file content" myemail@mydomain.com

我相信mailx在fmt内部使用。我想将 fmt 宽度参数更改为fmt -s -w160.

ps:这是在 Fedora 20 上

4

1 回答 1

0

mailx 几乎可以肯定不会对其中的输入进行任何格式化。

您最好的选择是在发送到 mailx 之前在输入上运行 fmt,例如:

  fmt -w 160 file.txt | mailx -s 'your data, formatted' somebody@someplace 
于 2014-07-12T19:40:26.503 回答