Simple command line tool to rename all files in a directory by extension with given substring and replacer
If you already have go
installed, you can easily just clone the repository and run go install
. Go will compile and install the project for you. The executable will be located in ~/go/bin
, so make sure the folder is inside your PATH (it automatically should be on Windows).
You can dwonload the Go SDK here.
-D
[optional]:
The directory of the files you want to rename (defaults to currect directory), e.g. /home/joe/mama
, C:\Users\Stuff\Pictures
-E
[optional]:
The file extension to filter (default: *
(all files)), e.g. webm
, .jpg
, tar.gz
, .tar.xz
-S
:
The substring/section you want to rename, e.g. Bloat
(to be removed), this
, .m4v
(file extension)
-R
:
The replacement for the substring, e.g.
(empty string), that
, .mp4