79185073

Date: 2024-11-13 13:26:18
Score: 3
Natty:
Report link

Someting like?

find "$path" -depth 2 -type d -mtime +"$days" -exec sh -c 'for dir; do echo "$(stat -c %Y "$dir") $dir" >> deletion_log.txt; rm -rf "$dir"; done' sh {} +
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Jan Suchanek