Skip to content

Instantly share code, notes, and snippets.

@itspacchu
Created February 14, 2025 07:32
Show Gist options
  • Save itspacchu/0f4f75a9db762f103d1bbdce28d07e63 to your computer and use it in GitHub Desktop.
Save itspacchu/0f4f75a9db762f103d1bbdce28d07e63 to your computer and use it in GitHub Desktop.
#!/bin/bash
files=$(find ./ -mtime +7)
for file in $files; do
rm -rf $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment