How do I delete files in a directory that match a given regexp, or a similar solution, using a Mac terminal?
Find all files (recursively) matching a regex:
The brackets store the found pathname, and the backslash escapes the semicolon because it's passed to find; without escaping it, it would be consumed by the shell. If that went over your head, read the first two chapters of "Learning the Bash Shell".
Check the man pages for
Very similar to jorelli's answer. This is what I use: