1. MagicESP Test
  2. Ubuntu Server 22.04
  3. Delete Files By Filename Pattern

Delete Files By Filename Pattern

$[pattern]$

Recursively delete all the files that has a filename pattern $pattern$.

find . -type f -name "$pattern$" | xargs rm