Your Ad Here

Posted By

kitzelh on 10/16/09


Tagged


Versions (?)

Subtract Files


 / Published in: Bash
 

Output all lines in FileA that are not in FileB.

  1. sort FileA | uniq | sort - FileB FileB | uniq -u
  2.  
  3. # If you know ahead of time that all lines in FileA are unique:
  4. sort FileA FileB FileB | uniq -u

Report this snippet  

You need to login to post a comment.