Crates.io | rsre |
lib.rs | rsre |
version | 0.2.4 |
source | src |
created_at | 2022-10-22 22:14:26.874501 |
updated_at | 2022-10-25 06:41:18.225479 |
description | Tool to rename file/directory |
homepage | https://github.com/TheAwiteb/rsre |
repository | https://github.com/TheAwiteb/rsre |
max_upload_size | |
id | 694915 |
size | 30,676 |
# Install nightly rust
rustup toolchain install nightly
# Install Rsre with nightly rust
cargo +nightly install rsre
rsre --version
# 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
because i don't want to write full path of the new name 😶
USAGE:
rsre FILE/DIRECTORY NEW_FULL_NAME
OPTIONS:
-h, --help Print help information
-V, --version Print version information
# with mv
mv ../../foo/bar/bat/foo.txt ../../foo/bar/bat/bar.txt
# with rsre
rsre ../../foo/bar/bat/foo.txt bar.txt
rsre bar.rs foo.rs