rew

Crates.iorew
lib.rsrew
version0.3.0
sourcesrc
created_at2020-12-09 02:27:44.03534
updated_at2021-03-29 17:38:00.503559
descriptionA text processing CLI tool that rewrites FS paths according to a pattern.
homepage
repositoryhttps://github.com/jpikl/rew
max_upload_size
id320988
size413,008
Jan Pikl (jpikl)

documentation

https://jpikl.github.io/rew

README

rew

A text processing CLI tool that rewrites FS paths according to a pattern.

Build Coverage Version Dependencies Downloads License

What rew does

  1. Reads values from standard input.
  2. Rewrites them according to a pattern.
  3. Prints results to standard output.

What rew does

Input values are assumed to be FS paths, however, rew is able to process any UTF-8 encoded text.

find -iname '*.jpeg' | rew 'img_{C}.{e|l|r:e}'

Rew is also distributed with two accompanying utilities (mvb and cpb) which move/copy files and directories, based on rew output.

find -iname '*.jpeg' | rew 'img_{C}.{e|l|r:e}' -d | mvb

Documentation

License

Rew is licensed under the MIT license.

Commit count: 487

cargo fmt