发现没有recursion
是否有可能以某种方式使用find命令,它不会recursion到子目录中? 例如, 
 DirsRoot |-->SubDir1 | |-OtherFile1 |-->SubDir2 | |-OtherFile2 |-File1 |-File2 
 而类似的find DirsRoot --donotrecuourse -type f结果find DirsRoot --donotrecuourse -type f将只有find DirsRoot --donotrecuourse -type f ? 
 我想你会根据你当前的命令结构,用-maxdepth 1选项得到你想要的。 如果没有,你可以尝试看看手册页 。 
相关条目(为方便起见):
 -maxdepth levels Descend at most levels (a non-negative integer) levels of direc- tories below the command line arguments. `-maxdepth 0' means only apply the tests and actions to the command line arguments. 
你的select基本上是:
 find DirsRoot/* -maxdepth 0 -type f #This does not show hidden files 
要么:
 find DirsRoot/ -maxdepth 1 -type f #This does show hidden files 
 我相信你正在寻找-maxdepth 1 。 
如果您寻找符合POSIX标准的解决scheme:
 cd DirsRoot && find . -type f -print -o -name . -o -prune 
-maxdepth不符合POSIX标准。