Using diff and suppressing completely different files

I have two copies of the application source code. One instance is encoded, and the other is not. There are configuration files scattered throughout the structure of the application directory, and this is what I would like to compare.

Is there a way to use diff where-by, I can ignore completely different files (that is: an encrypted file and an unencrypted file) and only report differences in similar files (in configurations).

+5
source share
1 answer

You can write a script that uses findto find files based on a name or other criteria and fileto determine if they have the same type of content (i.e. one compressed, one not).

For me more specific, I would like you to provide more detailed information on whether these parallel directory structures (files and directories are displayed in the same places on two trees), and whether the files you are looking for have names that distinguish them from files that you want to ignore. Any additional information you can provide can help even more.

+1
source

All Articles