Skip to content

Commit 28d0fa3

Browse files
lutixiayajaywcjlove
authored andcommitted
修改find示例 (jaywcjlove#106)
* 修改107行的g全局作用 g不应该是匹配每一行的第一个匹配项,而是每一行的所有匹配项 * 增加修改用户家目录的选项以及实例 增加修改用户家目录的选项以及实例 * 添加fping新命令 * Update fping.md * updat find.md
1 parent 8d77b1b commit 28d0fa3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎command/find.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ find $HOME/. -name "*.txt" -ok rm {} \;
300300
查找当前目录下所有.txt文件并把他们拼接起来写入到all.txt文件中
301301

302302
```shell
303-
find . -type f -name "*.txt" -exec cat {} \;> all.txt
303+
find . -type f -name "*.txt" -exec cat {} \;> /all.txt
304304
```
305305

306306
将30天前的.log文件移动到old目录中

0 commit comments

Comments
 (0)