scmuser created the topic: Shell Script to delete a folder that is more then
Shell Script to delete a folder that is more then 1 week old
Hi all,
i have this scritp
set -x
cd /var/log/
direc=”bkp_`date +%F`”
mkdir $direc
cp /var/log/*.log /tmp/bkp.
—
Here im ok, what i need is a scritp to check if i have a folder that is more then 1 week to delete it.
Any help please?
Latest posts by Rajesh Kumar (see all)
- How to remove sensitive warning from ms office powerpoint - July 14, 2024
- AIOps and DevOps: A Powerful Duo for Modern IT Operations - July 14, 2024
- Leveraging DevOps and AI Together: Benefits and Synergies - July 14, 2024