Find非递归遍历文件夹

find 命令是递归遍历文件夹

基本语法

Bash
$ find [path] [option] [expression]

参数

-maxdepth n :指明遍历的深度

Bash
find ./ -maxdepth 1 -type d

注:如上n为1时,即遍历当前层级的目录文件。

本文链接:https://jeff.xin/post/93.html

--EOF--

Comments

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。