我正在使用命令 cat ~/2014-02-06_BP.txt | mailx -s "formatted file content" myemail@mydomain.com 我相信mailx在内部使用fmt。我想将fmt的宽度参数更改为fmt -s -w160。 注:这是在Fedora 20上。
mailx 几乎肯定不会对输入的 cat 格式化。 您最好在将输入发送到 mailx 之前对其运行 fmt,例如: fmt -w 160 file.txt | mailx -s 'your data, formatted' somebody@someplace
fmt
,还是这只是你根据读取邮件时消息外观所做的猜测?我猜测是读者正在重新格式化。 - user2404501