A file (Paths.dat) which contains multiple Paths where it needs to find files which are 15 days old and zip it in same folder with modified date.
Paths.dat :- contains multiple paths in File system ( with delimiter ' | ' )
/docusr1/user01 | /docusr2/user02 | /home/user01
ex:- /docusr1/user01
-rwxrwxrwx. 1 docusr2 docusr2 0 Mar 30 10:52 vinay.txt
-rw-rw-r--. 1 docusr2 docusr2 0 Mar 30 10:52 sathish.txt
-rw-rw-r--. 1 docusr2 docusr2 625 Apr 2 10:57 demo1.xml
-rw-rw-r--. 1 docusr2 docusr2 4430 Apr 2 11:09 sample.xml
-rw-rw-r--. 1 docusr2 docusr2 48 Apr 2 14:04 20180402140454.log
-rw-rw-r--. 1 docusr2 docusr2 48 Apr 2 14:39 20180402143917.log
-rw-rw-r--. 1 docusr2 docusr2 39 Apr 2 14:41 20180402144159.log
-rw-rw-r--. 1 docusr2 docusr2 84 Apr 2 14:46 20180402144651.log
-rw-rw-r--. 1 docusr2 docusr2 279 Apr 2 14:48 archive.sh
-rw-rw-r--. 1 docusr2 docusr2 84 Apr 2 14:48 20180402144814.log
-rw-rw-r--. 1 docusr2 docusr2 1228 Apr 5 10:10 real.xml
search for files which are 15 days old and need to zip the files with modified date as zip file name(archive file)
o/p expected:-
20170330.zip -> it should contain all file which are modified on 2017-03-30
20170402.zip
20170405.zip