Total Pageviews

Wednesday, January 16, 2013

find: cannot open ./


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

$find . -name srinivasbt

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 2>/dev/null

No comments:

Post a Comment