Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

Nom

PNGSlicer

Nom is a minimalist bulk renamer for the command line. It's a faster, more colorful, and enhanced version of the simple rn tool.

It provides several methods to batch-process file names: convert to lowercase, uppercase, snake_case, dash-case, or add sequential numbering. Extensions are automatically preserved and lowercased.


Installation

1. Compile the tool

Ensure you have Go installed. Run the following command in the project directory:

go build -o nom main.go

2. Add to your Path

To use nom from anywhere, move the binary to your local bin directory (usually /usr/local/bin for manual installs):

sudo mv nom /usr/local/bin/

Usage

nom <method><path> [options]

Methods

MethodAliasDescription
lowerlcConvert filename to lowercase.
uppercaseucConvert filename to uppercase.
dasherizedashConvert to lowercase with dashes (-).
snakeifysnConvert to lowercase with underscores (_).
spacifyspConvert to lowercase with spaces.
ucwordsucwUppercase the first letter of each word.
numbernumRename with sequential numbering.

Options

  • -f <format>: (For number method only) Customizes the numbering format.
    • Default: name-1.jpg
    • Advanced: %03d-name.jpg001-name.jpg

Examples

Lowercase all .JPG files in a folder:

nom lc pictures/*.JPG

Snakeify and lowercase files in the current directory:

nom sn .

Batch number vacation photos:

nom num vacation/*.jpg -f "hawaii-trip.jpg"# Output: hawaii-trip-1.jpg, hawaii-trip-2.jpg...

Custom sequence padding:

nom num logs/*.log -f "log-%03d.txt"# Output: log-001.txt, log-002.txt...

License

This project is licensed under the MIT License.


JREAM

©2002-2026 Jesse Boyer / JREAM

About

CLI Renamer like rn in Go

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages