shell script to compare two directories recursively code example Example: directory diff diff -qr dir1/ dir2/