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.