Way back when, I posted about using find and grep. I have learned a couple of things since then.
find your critiera | xargs grep your grep criteria … is nicer to your processor, memory, and quickly returning the results.
2) finding writable files. This has been particularly useful when using a really backwards SCS that doesn’t integrate nicely, cleanly, or usable with an IDE.
find . -type f -perm /u=w
So simple. So elegant. So simply says “find all files in this directory, recursively, that are writable by the user/owner”. The one confusing thing I had about this was /u instead of /o. I figured “owner, group, world”, but it is actually “user, group, other(s)”.
Anyway, this has improved my programming life. Yeah, I’m gonna say it… take that, Windows.