Skip to content

Simple command line tool to rename all files in a directory by extension with given substring and replacer

License

Notifications You must be signed in to change notification settings

Stridsvagn69420/go-rename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-rename

Simple command line tool to rename all files in a directory by extension with given substring and replacer

Installation

Go SDK (recommended)

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.

Usage

-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

About

Simple command line tool to rename all files in a directory by extension with given substring and replacer

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published