>_ IzzyLab

Topic breakdown

Files are selected not only by name and size, but also by time. find filters by age via the last modification time, measured in days, and distinguishes "older than N", "younger than N" and "exactly N" — the direction is set by the sign before the number (+N — older, -N — younger, N — exactly). Having selected old regular files in the right directory, you delete them with the built-in action, without launching an external rm on each one. Mixing up the sign on the day count is the most common mistake: it'll purge something entirely different from what you wanted.

What's checked

  1. files older than 30 days are deleted
  2. files younger than 30 days are in place

What it looks like