I try to understand what -c
option does in tr
command according to man tr
command it says:
-c, -C, --complement use the complement of SET1
But I cannot understad what the doc mean by "complement" so I did the following example to understand it:
I created the following file named trance.txt
:
ILOVE YOU
I HATE YOU
i WANNA EAT APPLE PIE
And I run: tr -C A-Za-z "\n" < trance.txt
That gives the output:
ILOVE
YOU
I
HATE
YOU
i
WANNA
EAT
APPLE
PIE
But I still do not get it what actually -c
option does. Can you explain to me please?