Rew Save

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

Project README

rew

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

Build Coverage Version Dependencies Downloads License

How rew works

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

How rew works

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.

Open Source Agenda is not affiliated with "Rew" Project. README Source: jpikl/rew
Stars
40
Open Issues
2
Last Commit
3 weeks ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating