Give a Unix command that copies all regular files below the current directory (i.e. all its underlying subdirectories) that were modified today. Each copy must be placed in the same directory as the original file and must take over the original file name supplemented with the extension .BACKUP.
For example, if the file system has the following directory structure below the directory aaa:
$ ls -lR aaa
aaa:
total 8
drwx------ 2 mpalin users 4096 Jan 6 11:00 eerder1
drwx------ 2 mpalin users 4096 Jan 6 11:00 eerder2
-rw------- 1 mpalin users 0 Jan 7 12:00 gisteren
-rw------- 1 mpalin users 0 Jan 8 12:00 vandaag1
-rw------- 1 mpalin users 0 Jan 8 12:00 vandaag2
aaa/bbb:
total 0
-rw------- 1 mpalin users 0 Jan 7 12:00 gisteren1
-rw------- 1 mpalin users 0 Jan 7 12:00 gisteren2
-rw------- 1 mpalin users 0 Jan 8 12:00 vandaag
aaa/ccc:
total 0
-rw------- 1 mpalin users 0 Jan 6 10:00 eerder
-rw------- 1 mpalin users 0 Jan 7 12:00 gisteren
-rw------- 1 mpalin users 0 Jan 8 12:00 vandaag2
the directory structure below the directory aaa should look like this after executing the command (where the newly created backup files are marked in bold):
$ find ...
$ ls -lR aaa
aaa:
total 8
drwx------ 2 mpalin users 4096 Jan 6 11:00
eerder1
drwx------ 2 mpalin users 4096 Jan 6 11:00
eerder2
-rw------- 1 mpalin users 0 Jan 7 12:00 gisteren
-rw------- 1 mpalin users 0 Jan 8 12:00 vandaag1
-rw------- 1 mpalin users 0 Jan 8 13:00 vandaag1.BACKUP
-rw------- 1 mpalin users 0 Jan 8 12:00 vandaag2
-rw------- 1 mpalin users 0 Jan 8 13:00 vandaag2.BACKUP
aaa/bbb:
total 0
-rw------- 1 mpalin users 0 Jan 7 12:00 gisteren1
-rw------- 1 mpalin users 0 Jan 7 12:00 gisteren2
-rw------- 1 mpalin users 0 Jan 8 12:00 vandaag
-rw------- 1 mpalin users 0 Jan 8 13:00 vandaag.BACKUP
aaa/ccc:
total 0
-rw------- 1 mpalin users 0 Jan 8
10
:00 eerder
-rw------- 1 mpalin users 0 Jan 7 12:00 gisteren
-rw------- 1 mpalin users 0 Jan 8 12:00 vandaag2
-rw------- 1 mpalin users 0 Jan 8 12:00 vandaag2.BACKUP