A simple CLI tool to recursively rename files, directories, and replace text inside files.
- Rename directories that contain a specific substring.
- Rename files that contain a specific substring.
- Replace text inside files.
You can install renom directly using Go:
go install github.com/CHashtager/renom/cmd/renom@latestThis will download, compile, and install the renom binary to your $GOPATH/bin directory, which should be in your PATH.
git clone https://github.com/CHashtager/renom.git
cd renomCompile the Go binary:
go build -o renom ./cmd/renom/main.goThis will generate an executable file named renom.
To use renom from anywhere in the terminal, you need to add it to your system's PATH.
- Move the binary to
/usr/local/bin:sudo mv renom /usr/local/bin/
- Verify installation:
renom --help
-
Move
renom.exeto a permanent location, e.g.,C:\renom\ -
Add this directory to the system PATH:
- Open Start Menu → Search "Environment Variables" → Open "Edit the system environment variables"
- Under System Properties, click Environment Variables
- Under System variables, select Path → Edit
- Click New, then add
C:\renom\ - Click OK to save
-
Verify installation:
renom --help
renom old_string new_stringExample:
renom "test" "example"This renames all occurrences of "test" with "example" in files, directories, and file contents.
To remove the tool, delete the binary from the PATH:
sudo rm /usr/local/bin/renom # Linux/macOS
del C:\renom\renom.exe # WindowsMIT License