I have a script which runs a few sanity checks, outputs the results to a file which is then concatenated and piped to a sendmail function as so:{ echo $headers; echo; cat health_check.log; } | sendmail $recipients ;If I cat the file the output is the result of the sanity checks on some 40 lines. When I receive the email the body of the text is all on one line and consequently hard to read.How do I ensure new lines are respected?
Piping cat to sendmail not respecting new lines
bash;cat;sendmail