Siva Prasad wrote:

I want to remove duplicate lines across files.

Below is the detailed problem,

I have file1 file2,file3,file4,file5,

The lines in file1 are there in file2,file3,file4,file5 I want to remove all the lines which are there in file1 from file2,file3,file4,file5.

Can anybody please tell me to solve the above problem?

You have been asked already not to makes posts in blue lettering. Please
have the courtesy to post in a fashion appropriate for the list.

read the faq article

  perldoc -q duplicate elements

which describes how to do this with an array of data. Hopefully you can
make the step to doing the same thing with disk files.

HTH,

Rob

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to