common/z*: add Chinese translation (#14773)
* common/z*: add Chinese translation * Update zoxide.md * Update zoxide.md
This commit is contained in:
28
pages.zh/common/zegrep.md
Normal file
28
pages.zh/common/zegrep.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# zegrep
|
||||
|
||||
> 使用 `egrep` 在压缩文件中查找扩展正则表达式模式。
|
||||
> 更多信息:<https://www.unix.com/man-page/freebsd/1/zegrep/>.
|
||||
|
||||
- 在压缩文件中搜索扩展正则表达式(支持 `?`, `+`, `{}`, `()` 和 `|`),区分大小写:
|
||||
|
||||
`zegrep "{{搜索模式}}" {{路径/到/文件}}`
|
||||
|
||||
- 在压缩文件中搜索扩展正则表达式(支持 `?`, `+`, `{}`, `()` 和 `|`),忽略大小写:
|
||||
|
||||
`zegrep --ignore-case "{{搜索模式}}" {{路径/到/文件}}`
|
||||
|
||||
- 搜索不匹配模式的行:
|
||||
|
||||
`zegrep --invert-match "{{搜索模式}}" {{路径/到/文件}}`
|
||||
|
||||
- 打印每个匹配项的文件名和行号:
|
||||
|
||||
`zegrep --with-filename --line-number "{{搜索模式}}" {{路径/到/文件}}`
|
||||
|
||||
- 搜索匹配模式的行,仅打印匹配的文本:
|
||||
|
||||
`zegrep --only-matching "{{搜索模式}}" {{路径/到/文件}}`
|
||||
|
||||
- 在压缩文件中递归搜索文件中的模式:
|
||||
|
||||
`zegrep --recursive "{{搜索模式}}" {{路径/到/文件}}`
|
Reference in New Issue
Block a user