I have two text files that contain a unique sorted list of words:
File 1:
a
b
c
d
File 2:
b
c
I need a new file that contains only the extraneous lines in File 1, so the result will be
a
d
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is what
commis for:You want
which will suppress output of lines only in file 2 and lines in both files, leaving only lines in file 1.
More answers here on Greg Wooledge’s wiki