Overview

HTTPS SSH

remv (largely untested yet!)

Rename files with regular expressions.

This applications aims to solve the problem that renaming files with regular expressions sucks dicks in hell.

The current approach to the problem:

ls * | sed -E 's/(.*)text(.*)to(.*)remove(.*)/mv & "$1$2$3$4"/' | sh

If you think this is handy, please seek help.

The remv approach to the problem:

remv "(.*)text(.*)to(.*)remove(.*)" "$1$2$3$4"

How to compile:

Grab clang for your OS (we need C++17), then:

clang src/remv.cpp

Or, on Windows:

.\build.cmd

Enjoy.

How to use it:

 USAGE:
        remv [COMMANDS]
        remv [OPTIONS] <regex> <replacement> [<startpath>]

 OPTIONS (any combination):
        -r      Recurse into subdirectories.
        -d      Also rename directories on the way.
        -s      Sets the start directory to the last parameter
                else, remv will start in '.'.
        -v      Verbose logging.
        -vv     Very verbose logging.
        -n      Dry run - don't modify anything just yet.

 COMMANDS:
        -V      Display the remv version and exit.
        -h      Display this help screen and exit.

Comments?