Hi,
I have two files (ASCII text), pass.old and pass.new, I want to find all the lines in pass.new which don't appear in pass.old (most lines overlap)... here's what I've got so far:
sort -n pass.old pass.new | uniq -u
that prints the lines in pass.new which don't appear in pass.old (but also the ones in pass.old which don't appear in pass.new), I want the output to be only the ones which appear in pass.new and not pass.old, I recon it'll be something to do with grep.
I've tried a few things like:
grep (sort -n pass.old pass.new | uniq -u) pass.new
or grep [sort -n pass.old pass.new | uniq -u] pass.new
I always get error messages, and I'm not quite sure how to write it so that it does grep of the output of sort -n etc. on pass.new,
Hopefully that made sense,
Any help/ideas on this one?
Bookmarks