On `Solaris 10`, I have two directories having mostly same set of files in both directories but there could be few files present only in one directory. the almost same list of files. With the `diff` command I can see individual differences. With a combination of `diff` with a `find` statement run in a for loop as below:

```
for  i in `find $DIRNM -type f`

```

I can check individual differences of the files. But, I need to have some statistics like how many got changed, how many lines added, how many lines deleted, and how many lines modified. How can i do that with the help of a shell script.