I need a shell script that can list file in a date range and zip them.
$10-30 USD
I përfunduar
Postuar over 10 years ago
$10-30 USD
Paguhet në dorëzim
I am looking for a basic shell script(KSH) that can parse the sub directories under a direcory SAY:~/MasterDirectory.
~/MasterDirectory has subdirectories: FOLDER1, FOLDER2, FOLDER3 etc....These subdirectories has files in it.
The script should parse each subdirectory and perform the following:
1) Go to one sub directories then find files from three months prior: -- so Todays date - 3 months and then take files from the first of that month through the last of that month. That is: if the script runs on 01-10-2014 it should pick up files 3 months prior from 10-1-2013 through 10-30-2013.
2) Only Zip the files found in the above list and name the zip file titled: 'archive_%SubDirectoryName%[login to view URL]'
3) Copy the zip files from ~/MasterDirectory/Subdirectory to /home/archive directory with the original timestamp and delete the files from the original subdirectory.
Once the above step is complete for a given subdirectory....move to the next subdirectory and repeat the same step above. I have SUNOS and have ksh available.
Thanks
As a Linux professional with 4+ years of industrial experience with Good knowledge in Shell scripting, C programming provokes me to bid for this project. As i feel the project is simple one, i can complete this less a day.
Please provide further information if any and award the same.
Thanks in advance,
Parthiban N
$10 USD në 1 ditë
0,0 (0 përshtypje)
0,0
0,0
3 profesionistët e pavarur ofrojnë mesatarisht $40 USD oferta për këtë punë
Hello,
I have over 9 years experience as an Linux admin and can write this script for you. Please feel free to ask if you have any questions. Thank You