Files
bash-scripts/tld/cleanup.sh
2025-09-30 19:49:32 -07:00

8 lines
175 B
Bash
Executable File

#!/usr/bin/env bash
ROOT="$HOME/backup_tld"
for save in $(find . -mindepth 1 -maxdepth 1 -type d | cut -d '/' -f 2 | sort -n | head -n -3); do
rm -rf "$ROOT/$save"
done