1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

fd: add Chinese translation (#15037)

Co-authored-by: Ein Verne <git@einverne.info>
This commit is contained in:
Pr0m1x 2024-12-08 22:43:10 +08:00 committed by GitHub
parent 3aefd7b034
commit bf0f4ee287
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

29
pages.zh/common/fd.md Normal file
View file

@ -0,0 +1,29 @@
# fd
> `find` 的替代工具。
> 旨在比 `find` 更快且更易于使用。
> 更多信息:<https://github.com/sharkdp/fd>.
- 递归查找当前目录中匹配特定模式的文件:
`fd "{{字符串|正则表达式}}"`
- 查找以特定字符串开头的文件:
`fd "{{^字符串}}"`
- 查找具有特定扩展名的文件:
`fd --extension {{txt}}`
- 在特定目录中查找文件:
`fd "{{字符串|正则表达式}}" {{路径/到/目录}}`
- 在搜索中包含被忽略和隐藏的文件:
`fd --hidden --no-ignore "{{字符串|正则表达式}}"`
- 对每个返回的搜索结果执行命令:
`fd "{{字符串|正则表达式}}" --exec {{命令}}`