in reply to duplicate lines in array

Your question needs to be a little clearer - would you also want H(16) to be printed, since it occurs both in file 1 and file 2?

Replies are listed 'Best First'.
Re: Re: duplicate lines in array
by harry34 (Sexton) on Jan 27, 2004 at 10:14 UTC
    I wish to compare data within each seperate file only.
    I do not want to compare one file with another.
    So in file 2 only the line containing H(15) will be displayed, i.e. 2 lines.
    If a file contained H(16) or H(20) twice or more then those lines should also be printed out.
    Has to be writen generally since numbers can change.

    cheers Harry