Wednesday, 2 November 2011

Find in Unix

I keep using the find command in Unix as such: "find / -name SOMETHING" (Yes, I know there's locate, too). You always get an error message when you hit a directory you don't have permissions for, but I usually don't care about those directories anyway, so it makes sense to pipe those error messages that appear on stderr to /dev/null. This works like this: "find / -name SOMETHING 2> /dev/null".
Yes.

No comments:

Post a Comment