Command line tool to bulk rename files recursively. It's fast!
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.
Usage: rmv [OPTIONS] <FROM> <TO>
Arguments:
<FROM>
<TO>
Options:
-r, --recursively
-d, --directory <DIRECTORY> [default: .]
-h, --help Print help
-V, --version Print version
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'