A tool for fast renaming or moving files according to a given input and output templates. An analog to linux mmv
Project on the HSE Rust course
You must have the project dependencies installed
- Cloning a repository
git clone https://github.com/X-OrBit/tfr
- Going to the tfr directory
cd tfr
- Building
cargo build -p tfr -r
The binary file will be located along the path ./target/release/tfr
Releases and builds of the program can be found at the link
For this project you must have installed Rust compiler and cargo:
sudo brew install rust
sudo port install rust
Run the following in terminal, then follow the on-screen instructions:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Download and run rustup-init.exe
Moving single file
tfr source/file/path destination/file/path
Moving all files from directory
tfr source/dir/path/* destination/file/path/#1
Moving only .txt
files from directory
tfr source/dir/path/*.txt destination/file/path/#1.txt
Change file name formats
tfr source/dir/path/image_*_from_*.* destination/file/path/#2_#1_image.#3
There may be problems on systems where the file system does not support /
- Support for capture flags in directories (
source/dir_*/path/*.png
) - Support for including
/
in captures with special capture flag:**
(source/**/path/**.png
) - Support for moving/renaming directories (
source/directory/path/to/move
) - Support for insertion flags in directories (
destination/dir_#1/path/#2.png
)