how to get filename from path older than 5 days in linux code example
Example: delete logs older than 7 days linux
find /media/bkfolder/ -mtime +7 -name'*.gz' -exec rm {} \;
find /media/bkfolder/ -mtime +7 -name'*.gz' -exec rm {} \;