Size: 313
Comment:
|
Size: 322
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
1. 递归查找(find 命令 是递归遍历文件夹的) | 1. 递归查找(find 命令 是递归遍历文件夹的):: |
Line 3: | Line 3: |
命令:find . -name “*.txt” //当前路径下递归查找以.txt结尾的文件夹 | :: 命令:find . -name “*.txt” //当前路径下递归查找以.txt结尾的文件夹 |
Line 5: | Line 5: |
2. 不递归查找 | 2. 不递归查找 :: |
Line 7: | Line 7: |
find . -name “*.txt” -maxdepth 1 //当前路径下不递归查找以.txt结尾的文件夹,-maxdepth 1表示查找深度为1 | :: find . -name “*.txt” -maxdepth 1 //当前路径下不递归查找以.txt结尾的文件夹,-maxdepth 1表示查找深度为1 |
1. 递归查找(find 命令 是递归遍历文件夹的)::
:: 命令:find . -name “*.txt” //当前路径下递归查找以.txt结尾的文件夹
2. 不递归查找 ::
:: find . -name “*.txt” -maxdepth 1 //当前路径下不递归查找以.txt结尾的文件夹,-maxdepth 1表示查找深度为1