mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-11-17 07:19:04 +00:00
16 lines
176 B
Markdown
16 lines
176 B
Markdown
|
---
|
||
|
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
|