FG

Mac -- remove all files with a certain extension from a directory tree

Fresh3 days ago
Mar 15, 202680916 views
Confidence Score0%
0%

Problem

Possible Duplicate: Delete files recursively matching a name on the command line (OS X) I want to remove all files with extension .orig from my tree. The tree is deep. Is there an easy way to do that? I will probably have to do this many times a day, with different trees. So ease is important.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Mac -- remove all files with a certain extension from a directory tree

Low Risk

Use the tool: Note that the wildcard must be quoted (either as or or ), as you want it to be only handled by 'find' but not by the shell. Some operating systems might not have the option, in which case make it invoke :

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment