subr01 has asked for the wisdom of the Perl Monks concerning the following question:

If I have two list files A and B which has a number of lines. I want C to have all that in B that is not in A. And how shall I store the result? In an array?

A: 1,3,4 2,3 2.4/2 B: 1,3,4 2.4/2 5,6

Then C should contain

C: 5,6

Replies are listed 'Best First'.
Re: Difference of two list files.
by Discipulus (Canon) on Jun 01, 2015 at 10:42 UTC
      Thank you monk. Got it.
Re: Difference of two list files.
by Corion (Patriarch) on Jun 01, 2015 at 10:43 UTC
Re: Difference of two list files.
by Anonymous Monk on Jun 01, 2015 at 20:07 UTC

    Can be accomplished with the unix comm utility:

    $ comm -13 fileA fileB > fileC
    
    (A requirement is that the lists be sorted.)