I have two text files, a.txt and b.txt where:
a.txt
1
2
3
4
5
b.txt
3
5
I'd like to have c.txt where matching numbers will be printed "0" and non matching numbers to be "1".
1
1
0
1
0
I understand that comm can suppress/ print unique lines but how do I get around to get the c.txt as above?
Many thanks.