tldr/pages/osx/rename.md

9 lines
243 B
Markdown
Raw Normal View History

2020-11-10 04:44:47 +00:00
# rename
> Rename a file or group of files with a regular expression.
2022-02-14 11:21:43 +00:00
> More information: <https://www.manpagez.com/man/2/rename/>.
2020-11-10 04:44:47 +00:00
- Replace `from` with `to` in the filenames of the specified files:
`rename 's/{{from}}/{{to}}/' {{*.txt}}`