>_ IzzyLab

Topic breakdown

find is not only about searching but also about acting on what is found: besides printing paths, it can immediately delete matches with a built-in action placed at the end of the expression. Files are selected with predicates (-name by name pattern, -type f to limit to regular files), and only then is the action applied. Deletion is irreversible, so a healthy habit is to first run the same search without the action and make sure the selection contains exactly what you intend.

What's checked

  1. all *.tmp files deleted
  2. the other files are in place

What it looks like