Skip to content

TWolfis/filerename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filerename

Filerename is a command-line tool written in Go that renames files in a directory based on specified criteria. It provides options for filtering files by pattern, converting case, adding timestamps, and handling conflicts.

Usage

Build the filerename executable:

go build

Run the executable with the desired options:

filerename -p "*.txt" -c -t -f

Options

Short Flag Long Flag Description
-c --caps Capitalize the filename.
-l --lower Convert the filename to lowercase.
-s --sep Separator to use when renaming files (default: _).
-p --pattern Pattern to match files (default: *).
-r --rec Rename files in subdirectories recursively.
-f --force Force rename without prompting, overwriting existing files if necessary.
-t --timestamp Append a timestamp to the filename.
-i --interactive Interactive mode, prompting for the new name of each file.
-v --version Print the version and license information.

Examples

Rename all .txt files to uppercase and add a timestamp:

filerename -p "*.txt" -c -t

Rename all files in the current directory and its subdirectories to lowercase:

filerename -l -r

interactively rename all files in the current directory:

filerename -i

License

This project is licensed under the 3-Clause BSD License - see the LICENSE.md file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages