用find查找文件是如何过滤无用信息# Unix - 噫吁兮,危乎高哉s*r2004-10-06 07:101 楼用find -name命令查找文件和目录,如果搜索范围大,经常会出现一大堆Permissiondenied的垃圾信息,如何过滤掉它们,之前好象有人问过,但我找不到那个帖子了。谢谢指教。
H*a2004-10-06 07:102 楼add this in the end of the command line2> /dev/null【在 s****r 的大作中提到】: 用find -name命令查找文件和目录,如果搜索范围大,经常会出现一大堆Permission: denied的垃圾信息,如何过滤掉它们,之前好象有人问过,但我找不到那个帖子了。谢谢: 指教。
q*g2004-10-06 07:103 楼Only bash can do this, tcsh is not that smart for instance, hehe.【在 H***a 的大作中提到】: add this in the end of the command line: 2> /dev/null