News:

SMF - Just Installed!

Main Menu

script modification

Started by mahesh, Sep 20, 2023, 05:44 AM

Previous topic - Next topic

mahesh

running 21.10

the below is a crontab script that runs daily. it backs uo my crontab jobs.


#!/bin/bash
crontab -l > $HOME/crontabBackup-`date +"%d-%m-%Y"`


how to i modify so that when it runs it deletes the previous days backup

tks
quote:He that would live in peace & at ease, Must not speak all he knows,nor judge all he sees.'