Does this work?

Associate
Joined
1 Aug 2003
Posts
1,053
I'm trying to run a grep command that compares the text from two files and prints out all the names in one that do not appear in the other but am uncertain as to whether the concatenation of switches is right:

grep -F -f -v old.txt old&new.txt > just_new.txt

Thoughts?
 
Yes, but if the files have different content, then it doesn't matter how sorted they are, the diff function works great if the two files are guarenteed to have the same data at the same line, that wont be the case here.
 
Back
Top Bottom