1
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-07-03 12:43:53 +01:00
notes/content/shell/rename-cli.md

16 lines
176 B
Markdown
Raw Normal View History

2021-05-14 20:22:54 +01:00
---
title: Bulk rename files
tags:
- CLI
---
```
rename 's/<in_re>/<out_re>/g' *
```
Useful options:
`-v`: List files renamed
`-n`: Dry-run
`-d`: Act just on the filename