I am writing a shell script, and in that I am using three html files. Now I am trying to concatenate all three files, and send the content as an email to my self.
Please see below what I am trying to do
three file: hello.html
, hello1.html
, hello2.html
.
Now I am appending the output of all these three files to file Final.Html
file like below and sending it, as an email.
>Final.html
cat hello.html >> Final.html
cat hello1.html >> Final.html
cat hello2.html >> Final.html
cat Final.html | sendmail -t
Now my input of all three files is shown below
$ cat hello.html
Hello world
$ cat hello1.html
india is my world
$ cat hello2.html
India is the best
After sending the mail, the output I am getting is below
Hello world
india is my world
India is the best
The output I am looking for is below with one empty line between each file. To get a clean and clear output.
Hello world
india is my world
India is the best
<br>
or similar HTML code, versus a blank line? – Jeff Schaller Oct 01 '18 at 20:47