I have two text file.
file1.txt has:
gedit
google chrome
git
vim
foo
bar
file2.txt has:
firefox
svn
foo
vim
How do I write a script that when executed (with file1.txt and file2.txt as argument) checks for duplication of text in each line (I mean it should process line wise), deletes the duplicated text in both the files.
So after the processing, both file1.txt and file2.txt should have following contents:
gedit
google chrome
git
bar
firefox
svn
Notice that foo and vim has been removed from both files.
Any guidance?
now both files contains: