doc: update grep.md example. (#361)

This commit is contained in:
zuixin369 2022-04-28 15:37:07 +08:00 committed by GitHub
parent 21c8007c93
commit 645d9de61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ echo "hello world" | grep -i "HELLO"
```shell ```shell
echo this is a text line | grep -e "is" -e "line" -o echo this is a text line | grep -e "is" -e "line" -o
is is
is
line line
#也可以使用 **-f** 选项来匹配多个样式,在样式文件中逐行写出需要匹配的字符。 #也可以使用 **-f** 选项来匹配多个样式,在样式文件中逐行写出需要匹配的字符。