4

Diff with exceptions Question

view full story
linux-howto

http://www.unix.com – So I'm currently developing an automated test system and I'm verifying my results by running a set of baselined data through and comparing the output (which is in a txt file) to a baseline results file. So of course I'm just using the diff command. Unfortunately each time I run the test there are 2 values that are changed. One is a uniq identifier and the other is a timestamp. What is the best way to have my diff ignore those 2 values? Keep in mind I need to ignore the value and not the line. Dummy Example of the file below and the fields needing to be ignored highlighted in red. Code: (HowTos)