mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-22 22:35:59 +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