Ubuntu – Bash script to remove folders older than X, but skipping newest N… Compatible with special characters in path
I am writing a backup script in bash and want to delete all backups older than X days, while leaving at least the newest N backups. This seems so simple, yet I have not been able to find a solution…