Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Without testing, I wonder if find follows symlinks. I’m pretty sure rm doesn’t.

Edit: Just checked and find doesn’t by default.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: