in reply to Whether this concept of comparing two different output from same input file will work

Why not use diff? It was built for just such a purpose.

  • Comment on Re: Whether this concept of comparing two different output from same input file will work