Sunday, March 7, 2010

Comparing files with slight differences


File compile-test.log is an output of a big compile from a database named TEST, and file is stored in TEST subdirectory.


File compile-prod.log is output of a big compile from a database named PROD, file is stored in PROD subdirectory.



diff PROD/compile-prod.log <(sed 's/TEST/PROD/g' ../TEST/compile-test.log

No comments: