1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-11-17 07:19:04 +00: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