How to write a script that compares the specified (as parameters) directories by content based on information about the size of files and the date they were changed? It is necessary to output for each file available in both directories something like this:
$ diff-dir /tmp/dir1 /tmp/dir2/ < file1.txt (новее в dir2) < file2.txt (новее в dir2) > file3.txt (старее в dir2) + subdir1 (отсутствует в dir1) - subdir2 (отсутствует в dir2)