blob: 371b59637248a6b2d105401982e2814eada4a322 (
plain)
1
2
3
4
5
6
7
|
#!/bin/bash
# Recursively delete directories by age (14 days), and only exactly at the depth of the base directory
find /path/to/base/dir/* -type d -mindepth 1 -maxdepth 1 -ctime +14 -exec rm -rf {} \;
|