3 ms·
When deleting, if it is more than a few specifically named files I will use a "find ... -delete" invocation. I like it for two reasons. Find feels like it has
by somat 2y ago
When deleting, if it is more than a few specifically named files I will use a "find ... -delete" invocation.
I like it for two reasons. Find feels like it has more solidly defined patterns and recursion than shell globing and by leaving off the "-delete" it give me a chance to inspect the results before committing to my actions.
- kstrauser 2y agoWithout testing, I wonder if find follows symlinks. I’m pretty sure rm doesn’t. Edit: Just checked and find doesn’t by default.