Ravi Sir's Cards › AWS
Safe delete script?
This interview card answers: Safe delete script? Guard empty vars. Dry run with -print first. Then -delete.
Read card text
What this card says
What it is
Guard empty vars.
${dir:?}
Why it matters
Dry run with -print first.
How / example
Then -delete.
find "$dir" -mtime +30 -delete