I want to test a tool that generates text files based on some X input (not relevant for this question). In order to be able to automate some tests and save time, I would like to know if there is a tool that could help to compare the content of the generated file against another file.
The output content could be generated in a different format than the file I want to compare against. For example, the generated file can contain one line, which is split in two contiguous lines in the other file. From the comparison point of view, this is not important - what is important is that the content is the same (maybe some spaces more / some spaces less between words; doesn't matter). Additionally, I would like to ignore commas during the comparison.
Is there something I can use to automate this kind of comparison?