Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
/ rename-rs Public archive

Command line tool to bulk rename files recursively. It's fast!

License

Notifications You must be signed in to change notification settings

Bnyro/rename-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rename-rs

Command line tool to bulk rename files recursively. It's fast!

Installation

Download the latest release tarball from the releases page.
Extract the binary by running tar xvf rn-{release version and architecture}.tar.gz.
Move the rn binary to any directory in your path variable, for example by running mv rn /usr/local/bin/rn.
Congrats! You're now ready to use it in production.

Basic usage

Usage: rmv [OPTIONS] <FROM> <TO>

Arguments:
  <FROM>
  <TO>

Options:
  -r, --recursively
  -d, --directory <DIRECTORY>  [default: .]
  -h, --help                   Print help
  -V, --version                Print version

Example patterns

Change the extension of all opus files in the current directory to ogg

rn '*.opus' '$1.ogg'

Change the extension of all svg files to xml recursively

rn -r '*.svg' '$1.xml'

Remove the first whitespace from filenames in the home directory (e.g. Hello World.txt -> HelloWorld.txt)

rn --directory '~' '* *' '$1$2'

About

Command line tool to bulk rename files recursively. It's fast!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages