Skip to content

olekspickle/rrename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rrename

A very opinionated command-line tool/library for file mass-renaming using regex

Example

no arguments run

> ls
 mock
 ├── Another Dir & Co
 │   ├── Some [some#bs].txt
 │   └── Some & Track.txt
 ├── Some Dir
 │   ├── SOME_fILe.txt
 │   ├── some, text_file.txt
 │   └── some,text_file.txt
 └── Some -  Word With III dCi135_
     └── Some Word F3500 dCi135 StereoM10.txt

> rrename
> ls
 mock
 ├── another-dir-and-co
 │   ├── some-and-track.txt
 │   └── some-[some#bs].txt
 ├── some-dir
 │   ├── some-file.txt
 │   ├── some-text-file-25057.txt
 │   └── some-text-file-57497.txt
 └── some-word-with-iii-dci135-
     └── some-word-f3500-dci135-stereom10.txt

using regex to substitute

> ls
3pv-some-file.mp4
> rrename -E "3pv-" -s ""
'./3pv-some-file.mp4' -> './some-file.mp4'
Renamed: 1, depth:1

kudos

wrench was taken as a base Powered by jwalk - walkdir on steroids using rayon

License: MIT OR Apache-2.0

About

Opinionated batch renaming program/lib

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENCE-APACHE
MIT
LICENCE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages