shell script to compare 2 files contents
Posted on 2007-11-25
I would like to create a shell script to compare 2 files.
content of file1:
content of file2:
for those lines in file 1 and not in file2 output to a text file.
for those lines in file2 and not in file1 output to another text file.
So, after running the script,
the 1st text file should give me: 5,5,xcvb,6
the 2nd text file should give me:0,2,abcd,4