I am trying to compare file1 with file2 and redirect the difference to file 3 in Unix shell scripting.
I am getting below error:
syntax error near unexpected token `('
comm -2 -3 <(sort PATH/FILE1) <(sort PATH/FILE2) > PATH/FILE3
data in file1:
A
B
D
C
Data in file 2:
A
C
Output expected in file3:
B
D