修改find示例 (#106)
* 修改107行的g全局作用 g不应该是匹配每一行的第一个匹配项,而是每一行的所有匹配项 * 增加修改用户家目录的选项以及实例 增加修改用户家目录的选项以及实例 * 添加fping新命令 * Update fping.md * updat find.md
This commit is contained in:
parent
8d77b1b5d8
commit
28d0fa37e2
|
|
@ -300,7 +300,7 @@ find $HOME/. -name "*.txt" -ok rm {} \;
|
|||
查找当前目录下所有.txt文件并把他们拼接起来写入到all.txt文件中
|
||||
|
||||
```shell
|
||||
find . -type f -name "*.txt" -exec cat {} \;> all.txt
|
||||
find . -type f -name "*.txt" -exec cat {} \;> /all.txt
|
||||
```
|
||||
|
||||
将30天前的.log文件移动到old目录中
|
||||
|
|
|
|||
Loading…
Reference in New Issue