how to compare and move missing folders in linux shell code example Example: directory diff diff -qr dir1/ dir2/