Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 2
    You have a typo in your script. There must be no space before the = sign in the assignment of found. Commented Aug 7, 2023 at 14:02
  • 1
    are the lines in file1 patterns to match against the lines in file2, i.e. can you have fo*b that would match foobar; or are you looking for one-to-one matches between identical lines? Commented Aug 7, 2023 at 19:36
  • @ilkkachu, thanks for looking at my question. I've simplified for my example it so it's not identical lines but what I'm trying to do is in my uniq_val.out file, it's a unique string, like a serial number or part number that I'm looking for in fd.out. If that serial number doesn't appear in fd.out, I want to be alerted to it. Commented Aug 7, 2023 at 20:47
  • Both files contain only the uniq ids? Each line contains a single string, and you just want to find the lines in uniq_val.out that don't appear in fd.out? Commented Aug 8, 2023 at 7:29
  • 1
    Related: Linux tools to treat files as sets and perform set operations on them Commented Aug 8, 2023 at 18:55