Skip to content

Simple golang program to change the file extension of a file.

License

Notifications You must be signed in to change notification settings

garrettcorn/go-file-renamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-file-renamer

Simple golang program to change the file extension of a file.

Install

Assuming golang is installed, run the following to clone the repository and install go-file-renamer.

go get -u github.com/garrettcorn/go-file-renamer
go install github.com/garrettcorn/go-file-renamer

If $GOPATH/bin is in the PATH, go-file-renamer's help can be viewed running the following.

go-file-renamer --help

To Add $GOPATH to .bashrc

Open your .bashrc with your editor of choice.

code ~/.bashrc

append $GOPATH/bin to your PATH by adding the following line to your .bashrc file

export PATH=$PATH:$GOPATH/bin

Usage

By default go-file-renamer will automatically change all of the files with the rar extension in the current working directory to mkv. To configure go-file-renamer simply provide -from and -to flags with the desired options. For example, to change all files in the current directory from foo to bar run the following.

go-file-renamer -from foo -to bar

About

Simple golang program to change the file extension of a file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages