memoir/pages/cli/rename.md

16 lines
174 B
Markdown
Executable File

---
tags:
- rename
- regex
---
# `rename`
`rename` is a command to rename based on regex.
```bash
rename 's/.odt.md/.md/' *.odt.md
```
> Use the `-n` flag to dry run