Bulk rename files using regex. With a simple command you can replace a pattern in thousands of file names in seconds
rex -r "\.html$" ".php"
The above will replace all .html extensions with .php
Notes: Backslashes and whitespaces must either be escaped or in quotes.
REX is just 1 binary file so to install it you can just copy it to to /usr/bin/
sudo cp /path/to/rex /usr/bin # Or anywhere in your PATH
REX is made with Crystal so you are going to need it to build it from source.
Just run:
crystal build rex.cr --release
- Add comments
- Cleanup messy code