3 ms·
The simplest would be find /path/to/wherever -name "*.mp3" -delete This works at least in GNU find and FreeBSD.
by icebraining 13y ago
The simplest would be
find /path/to/wherever -name "*.mp3" -delete
This works at least in GNU find and FreeBSD.
- aaronem 13y agoAt which point I'd argue that using -exec with an appropriate command is simpler, in the general case, than using one of find(1)'s many, many, many twiddly little command-line arguments. Granted, -exec spawns a process per file, but processor cycles are cheaper than brain cycles, &c., &c.