Comparing the contents of two files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • keerthivasan86
    New Member
    • Feb 2007
    • 1

    Comparing the contents of two files

    I need to write a PERL script to compare two files not in the same sequence.

    ie. Take one line from first file....compare with all lines in second file....If there is no match....put it in a third file

    If there is any match ...leave that line...and go to the second line in the first file....again compare with all lines in second file.

    Continue the same procedure till we reach the end of the first file.

    Please tell me how to write the script. I don't know PERL and I need to write this script in PERL only.
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    Originally posted by keerthivasan86
    Please tell me how to write the script. I don't know PERL and I need to write this script in PERL only.
    Why are you commanded to write a script using a language you don't know the first thing about?

    Comment

    Working...