I have some backup files which are created in a Daily manner. After some time they take a log of space and i want to delete them according to their time stamp like delete 1 month olders. Thanks
What exactly is the Question here…
Find command is very usefull option here. You can search for files older then 1 month and delete them with -delete option.
$ find /tmp -mtime +7 -type f -name ‘*.tmp’ -delete
Reference : https://www.poftut.com/how-to-remove-files-older-than-1-day-1-week-1-month-recursively/