I want to left-align text in a .txt file generated by a pl/sql query (.sql file) being called inside a shell script, and send the .txt file over an email using email command.

The issue is, the text file generated is aligned when I cat it but when sent over email it gets unaligned.

I tried using "column -t" command but that didn't work.

  • Please update question to include example input and desired output. – steve Apr 4 '17 at 21:34

If the file happens to be unaligned when you are emailing it, it may be due to the fact that generally most modern email programs use proportional typefaces, rather than the monospace ones that you will see on the terminal.

| improve this answer | |
  • I thought of doing that, but on balance decided it would be less snarky to just clean up the question. I feel your pain, though. – Wildcard Apr 4 '17 at 21:40
  • Oh, your option is definitely the less snarky one. – DopeGhoti Apr 4 '17 at 21:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.