Files
tldr/pages.zh/osx/rename.md

8 lines
245 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 重命名
> 使用正则表达式重命名文件或文件组。
> 更多信息:<https://keith.github.io/xcode-man-pages/rename.2.html>。
- 在指定文件的文件名中将 `from` 替换为 `to`
`rename 's/{{from}}/{{to}}/' {{*.txt}}`