Bash or shell script for macOs

Job ID: 34582077

Budget: $60 – $100 CAD

Write a Bash script that will do following. The shell/ bash/or zsh script will run on a MacBook and as a cronJob everyday


- Copy subfolders in folder APS_Public that have at least one file that has changed the last 24 hours from folder A to folder B
- While copying,
○ rename the subfolder . If folder with same name exist in folder B, replace it silently with the new one completly.
○ Rename the index.html file follwing this rule :
§ If the day is Monday , rename index.html as indexv1.html
§ If the day is Tuesday , rename index.html as indexv2.html
§ If the day is Wednesday , rename index.html as indexv3.html
§ If the day is Thursday , rename index.html as indexv4.html
§ If the day is Friday , rename index.html as indexv5.html
§ If the day is Saturday , rename index.html as indexv6.html
§ If the day is Sunday , rename index.html as indexv7.html
Related categories: PHP Python Script Install Linux Shell Script