mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-11-16 19:39:24 +00:00
Add rename
note
This commit is contained in:
parent
bdcaa9176d
commit
9f82abadb1
1 changed files with 15 additions and 0 deletions
15
notes/rename-cli.md
Normal file
15
notes/rename-cli.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
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
|
Loading…
Reference in a new issue