diff command

All,

How to exclude a directory while diff execution?

For ex:
To exclude file which we don't want to see diff, we have -x <filename>.

Thanks in advance

diff only compares files... so if you diif files inside a script, you have to take care there is no directory that would be "diff'ed" against another file or dir...