|
Finding lines in file1,but not in file 2
Hi,
I had used a command for this once, but forgot.
I have two files test1 and test2
=====================
cat test1:-
ingres!ingresr30!generic!back!awsf!hdr wsfinit.h 2
ingres!ingresr30!generic!back!awsf!hdr wsfvar.h 6
ingres!ingresr30!generic!back!awsf!hdr sfvar.h 6
cat test2
ingres!ingresr30!generic!back!awsf!hdr sfvar.h: file not had on subutest
ingres!ingresr30!generic!back!awsf!hdr wsfvar.h: file not had on subutest
ingres!ingresr30!generic!back!awsf!hdr wsfinit.h 2
=====================
I want to find lines that are in test1, but not in test2.
So the o/p should be :-
ingres!ingresr30!generic!back!awsf!hdr wsfvar.h 6
ingres!ingresr30!generic!back!awsf!hdr sfvar.h 6
What should I do?
Thanks in advance.
Subu
|