Differences between revisions 6 and 7
Revision 6 as of 2021-02-05 11:10:02
Size: 301
Editor: zbjxb
Comment:
Revision 7 as of 2021-02-05 11:10:22
Size: 307
Editor: zbjxb
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
递归查找(默认是递归遍历文件夹的):: 递归查找(默认是递归遍历文件夹的)
a
::
Line 4: Line 5:
不递归查找:: 不递归查找
b
::

递归查找(默认是递归遍历文件夹的) a:: :: 命令:find . -name “*.txt” //当前路径下递归查找以.txt结尾的文件夹

不递归查找 b:: :: find . -name “*.txt” -maxdepth 1 //当前路径下不递归查找以.txt结尾的文件夹,-maxdepth 1表示查找深度为1

linux/find (last edited 2021-02-05 11:10:59 by zbjxb)