views:

55

answers:

2

Can anyone create a script for a file comparison?

The pseudo code looks like this

  • extract line 5 from file 1
  • save it in another variable,
  • extract line 5 from file 2,
  • save it in another variable,
  • if variable 1 is not equal to variable 2 (while allowing for differing characters at positions 11 and 12 from the end of line)

    • then fail
    • else pass
+1  A: 
Charles Stewart
A: 

No I'm definitely not getting paid for this! I'm not a software developer either, so these skills are a bit out of my scope. I need them to integrate with a test tool (yes I'm a tester!).

Many thanks Charles for answering this, the support means a lot. I should have mentioned tho that I need it on windows. (sorry!).

Many thanks in advance to anyone who answers.

Anne-Marie
I ought to note that the files are in txt format but not recognisable. I don't know the file structure though the data is delimited by space
Anne-Marie