Total Pageviews

Wednesday, January 16, 2013

Find directories without "find: cannot open" messages



Command to find a directory (complete or part of name) named "srinivasbt" in all the directories under present "." directory.

$find . -name srinivasbt -type d

Same command as above which also avoids the unwanted messages of "find: cannot open ./"
This is by redirection of 2 helping in eliminating "find: cannot open ./nis.home/jaianshu/.subversion/auth"
kind of messages from the output.

find . -name srinivasbt -type d 2>/dev/null



No comments:

Post a Comment