Results 1 to 2 of 2

Thread: help with diff compare

  1. #1
    Join Date
    Mar 2008
    Location
    Florida
    Beans
    64
    Distro
    Ubuntu 12.04 Precise Pangolin

    help with diff compare

    I'm new to the use of diff.

    I am trying to compare the contents of two text lists and get an output of the DIFFERENCES in the two files as a txt file. I thought I had it figured out, but I have yet to get the correct results.

    Am I using the correct command, and if I am, what options need to be appended to this command to get the result of (contents of lines in list A)-(contents of lines of list b), where b is a subset of a (list b contains records of list a).

    I am trying to find the items not represented in the second list.

    An answer would be sufficient, but a "why" accompanying the answer would be much appreciated. Teach a man to fish.

    Thankful for any help.
    "If brute force doesn't solve your problems, then you aren't using enough."

  2. #2
    Join Date
    Apr 2005
    Location
    Glasgow, Scotland
    Beans
    1,642

    Re: help with diff compare

    I suspect you want unified diffs, which are generated using diff -u. Otherwise, the output is somewhat screwy.
    A Fedora user

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •