|
发表于 2009-8-4 09:39:18
|
显示全部楼层
也许 bobobian 兄愿意检查一下自己的 find 命令的版本?- $ cd /dev/shm/
- $ mkdir test boy
- $ touch test/b boy/b
- $ find -name b
- ./boy/b
- ./test/b
- $ find /dev/shm -path /dev/shm/boy -prune -o -name b -print
- /dev/shm/test/b
- $ find /dev/shm -wholename /dev/shm/boy -prune -o -name b -print
- /dev/shm/test/b
- $ find --version
- find (GNU findutils) 4.4.2
- Copyright (C) 2007 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Written by Eric B. Decker, James Youngman, and Kevin Dalley.
- Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
- Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() CBO(level=0)
复制代码 |
|