I use the command
cat ~/2014-02-06_BP.txt | mailx -s "formatted file content" myemail@mydomain.com
I believe mailx uses fmtinternally. I want to change the fmt width options to fmt -s -w160.
fmt
fmt -s -w160
ps: This is on Fedora 20
mailx almost certainly does NOT do any formatting of the intput cat-ed into it.
It would be best to run fmt on the input before sending it to mailx, for example:
fmt -w 160 file.txt | mailx -s 'your data, formatted' somebody@someplace
Source: https://habr.com/ru/post/1525827/More articles:R - Embedded Inter-Process Communication (IPC) Library - parallel-processingNSTextAttachment Animation - iosRails link_to object interpolation with url instead of path - ruby-on-railsAngularJS with System.Web.Routing - angularjsHow to pause various music players in Android? - androidDoctrine2 Migration - single table inheritance - parent identifier does not exist - inheritanceCreating winforms manages dynamically - c #An elegant way to handle LoaderCallbacks using DialogFragment - androiddynamically create multiple text fields C # - c #2 classes implement the same interface, duplicated code - c #All Articles