📜  find mindepth 1 maxdepth 1 - 不管是什么代码示例

📅  最后修改于: 2022-03-11 14:58:13.778000             🧑  作者: Mango

代码示例1
find(1) ~/Projects -mindepth 1 -maxdepth 1 -type d
search for files in a directory hierarchy

find [-H][-L][-P][-D debugopts][-Olevel][path...][expression]
-mindepth levels
      Do not apply any tests or actions at levels less 
      than levels (a non-negative integer).   
      -mindepth1 means process all files except 
      the command line arguments.   
-maxdepth levels
      Descend  at  most  levels  (a  non-negative  integer) 
      levels of directories below the command line arguments.
      -maxdepth 0 means only apply the tests and actions to the 
      command line arguments.
 -type c
       File is of type c:
       d      directory
       l      symbolic link;