ren3

Crates.ioren3
lib.rsren3
version0.1.0
sourcesrc
created_at2019-01-03 03:26:09.794005
updated_at2019-01-03 03:26:09.794005
descriptionDo file renaming using regular expressions.
homepage
repositoryhttps://github.com/Aloxaf/ren3
max_upload_size
id105156
size13,899
Aloxaf (Aloxaf)

documentation

https://github.com/Aloxaf/ren3

README

ren3 Linux build status

Do file renaming using regular expressions.

Inspired by ren2

Install

cargo install ren3

Usage

USAGE:
    ren3 [FLAGS] <expression> [dir]...

FLAGS:
    -b, --brief             only display base name
    -D, --directory-only    only rename directories
    -F, --file-only         only rename files
    -f, --force             apply changes
    -h, --help              Prints help information
    -r, --recursive         rename subdirectories recursively
    -V, --version           Prints version information

ARGS:
    <expression>    sed-like expression
    <dir>...        directories to rename

Examples

> ls
foo-1.jpg foo2.jpg

> ren3 's/.*(\d+\.jpg)/bar-$1' -f
[OK] ./foo2.jpg      -> ./bar-2.jpg
[OK] ./foo-1.jpg     -> ./bar-1.jpg

> ls
bar-1.jpg  bar-2.jpg
Commit count: 34

cargo fmt