How can I specify fmt parameter 'width' for mailx command? How can I specify fmt parameter 'width' for mailx command? unix unix

How can I specify fmt parameter 'width' for mailx command?


mailx is almost certainly NOT doing any formatting of intput cat-ed into it.

Your best bet would be to run fmt on the input before sending to mailx, eg:

  fmt -w 160 file.txt | mailx -s 'your data, formatted' somebody@someplace