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iLz4KCTxzdG9wICBvZmZzZXQ9IjEiIHN0eWxlPSJzdG9wLWNvbG9yOiNEQzFGRkYiLz4KPC9saW5lYXJHcmFkaWVudD4KPHBhdGggY2xhc3M9InN0MiIgZD0iTTMzMy4xLDEyMC4xYy0yLjQtMi40LTUuNy0zLjgtOS4yLTMuOEg2LjVjLTUuOCwwLTguNyw3LTQuNiwxMS4xbDYyLjcsNjIuN2MyLjQsMi40LDUuNywzLjgsOS4yLDMuOGgzMTcuNAoJYzUuOCwwLDguNy03LDQuNi0xMS4xTDMzMy4xLDEyMC4xeiIvPgo8L3N2Zz4K&style=flat)](https://wagmi.bio/Awiteb), [![Other currencies](https://img.shields.io/badge/BTC,_BCH-blueviolet.svg?logo=bitcoin&style=flat)](https://github.com/TheAwiteb#donating)
# **R**u**s**t **re**namer Rsre it's tool to rename file/directory
Zero dependencies 👀 License Rust
Continuous Integration
Release
## Requirements * [Rust](https://www.rust-lang.org/) Nightly ## Install ### With Cargo ```bash # Install nightly rust rustup toolchain install nightly # Install Rsre with nightly rust cargo +nightly install rsre rsre --version ``` ### From source ```bash # Install nightly rust rustup toolchain install nightly # Clone the repo git clone https://github.com/theawiteb/rsre.git # Change directory to it cd rsre # Build it with cargo cargo +nightly build --release # Move the binary to `/usr/bin` (Unix like system) (need permission to move in `/usr/bin`) # You can change binary directory to `~/.cargo/bin` if its exists and it's in `$PATH` sudo mv ./target/release/rsre /usr/bin/rsre # Print the version rsre --version ``` ## Why because i don't want to write full path of the new name 😶 ## Using ``` USAGE: rsre FILE/DIRECTORY NEW_FULL_NAME OPTIONS: -h, --help Print help information -V, --version Print version information ``` ## Example ### Long path ``` # with mv mv ../../foo/bar/bat/foo.txt ../../foo/bar/bat/bar.txt # with rsre rsre ../../foo/bar/bat/foo.txt bar.txt ``` ### Single file ``` rsre bar.rs foo.rs ``` ## License Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.