From 28d0fa37e25b2245ad611bfc33e9517e34b44716 Mon Sep 17 00:00:00 2001 From: lutixiaya <48750425+lutixiaya@users.noreply.github.com> Date: Wed, 15 May 2019 22:19:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9find=E7=A4=BA=E4=BE=8B=20(#10?= =?UTF-8?q?6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修改107行的g全局作用 g不应该是匹配每一行的第一个匹配项,而是每一行的所有匹配项 * 增加修改用户家目录的选项以及实例 增加修改用户家目录的选项以及实例 * 添加fping新命令 * Update fping.md * updat find.md --- command/find.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/find.md b/command/find.md index d2617daa54..e6d2470f3f 100644 --- a/command/find.md +++ b/command/find.md @@ -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目录中