Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コマンドを使用しています
cat ~/2014-02-06_BP.txt | mailx -s "formatted file content" myemail@mydomain.com
mailx はfmt内部的に使用していると思います。fmt width パラメータを に変更したいfmt -s -w160。
fmt
fmt -s -w160
ps: これは Fedora 20 上にあります
mailx は、ほとんどの場合、cat-ed された入力の書式設定を行っていません。
あなたの最善の策は、入力に対して fmt を実行してから、mailx に送信することです。次に例を示します。
fmt -w 160 file.txt | mailx -s 'your data, formatted' somebody@someplace