Use curl to send email


curl -v  smtp://hkie7apprelay.asia.intl.cigna.com  --mail-from [email protected] --mail-rcpt [email protected] --upload-file email.txt

email.txt
>
From: John Smith <[email protected]>
To: Joe Smith <[email protected]>
Subject: an example.com example email
Date: Mon, 7 Nov 2016 08:45:16

Dear Joe,
Welcome to this example email. What a lovely day.
<

from: John Smith <[email protected]>

Subject: an example.com example email

To: Joe Smith

Content:

Dear Joe,

Welcome to this example email. What a lovely day.

Difference between file a and b (show only left or only right)

https://stackoverflow.com/questions/15384818/how-to-get-the-difference-only-additions-between-two-files-in-linux

Show lines that only exist in file a: (i.e. what was deleted from a)

comm -23 a b

Show lines that only exist in file b: (i.e. what was added to b)

comm -13 a b

Show lines that only exist in one file or the other: (but not both)

comm -3 a b | sed 's/^\t//'

(Warning: If file a has lines that start with TAB, it (the first TAB) will be removed from the output.)

NOTE: Both files need to be sorted for “comm” to work properly. If they aren’t already sorted, you should sort them:

sort <a >a.sorted
sort <b >b.sorted
comm -12 a.sorted b.sorted

Select default vim color scheme in vim

https://phoenixnap.com/kb/vim-color-schemes

“`bash

:colorscheme [space] [Ctrl+d]

show existing color schema names

:colorscheme [colorscheme_name]

e.g. syntax

:colorscheme blue

e.g. to use blue scheme

:colo [colorscheme_name]

e.g. try to use your one colo equals to colorscheme

“`