Need text pattern compare script
I am looking for a text compare program/script that basically compares white spaces. In other words; Are two files formatted the same even if the data in the various fields is different between the two files? I have looked at sed , awk, diff, cmp and several forums to try to locate such a tool but have been unsuccessful so far.
The details are that I have an automated process that generates a EDI transmittal file containing invoice details (price, manufacturer and product numbers, volumes, order number, quantity,etc. This file is sent to customer for payment. Occasionally there is a need to perform some manual manipulations to the file and I want to be able to compare the changed one to an untouched "properly formatted" one to see that the manual changes were performed properly (at least in regard to formatting)?
Thanks in advance.