Comparing two files.

From: Alistair McKeown (Alistair.Mckeown_at_jacobsrimell.com)
Date: 04/28/05

  • Next message: Rajeev Sharma: "Summery: Equivalent Command"
    To: sunmanagers@sunmanagers.org
    Date: Thu, 28 Apr 2005 09:11:33 +0100
    
    

    Hi Gurus,

                    I have a quite simple problem in comparing two files, but a
    diff -i, isn't going to work. Both files contain billing numbers e.g one has
    more billing numbers than the other. So example would be one contains 200
    numbers the other contains 200 matching numbers + another 50 but the other
    50 are all over the place in the 2nd file not just at the end.

    6312894
    4100293
    6024135
    235689
    457832
    418076

    How can I get it so it will match all the same numbers in both files, and
    show me the 50 that don't match. A diff command only does it line per line.

    Alistair.
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: Rajeev Sharma: "Summery: Equivalent Command"

    Relevant Pages

    • Re: Comparing files in two directories
      ... Try these diff commands. ... By default, the diff command does ... Files A/three and B/three are identical ... Files A/two and B/two are identical ...
      (Debian-User)
    • Re: Comparing files in two directories
      ... Try these diff commands. ... By default, the diff command does ... Files A/three and B/three are identical ... Files A/two and B/two are identical ...
      (Debian-User)
    • Re: trouble with sh script
      ... >> if the diff command in the script does not return any output, ... its ineffecient to run the diff twice when you done't need to. ... substitution to capture the diff output in a variable, ...
      (comp.unix.shell)
    • Re: [RFC] Linux Kernel Subversion Howto
      ... One thing everyone creating kernel patches with subversion ... is the fact that the subversion built-in diff command does ... Thus you must use an external diff command to create kernel patches, ...
      (Linux-Kernel)
    • Re: Chinese Output for diff
      ... > Not really Chinese, of course, but it couldn't be less comprehensible if ... I run a diff on two files, ... The diff command reads two files and identifies groups of lines that are ... the default form can be used with the patch command. ...
      (comp.unix.shell)