Skip to content

JREAM/nom

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

Method Alias Description
lower lc Convert filename to lowercase.
uppercase uc Convert filename to uppercase.
dasherize dash Convert to lowercase with dashes (-).
snakeify sn Convert to lowercase with underscores (_).
spacify sp Convert to lowercase with spaces.
ucwords ucw Uppercase the first letter of each word.
number num Rename 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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages