Skip to content

rename and remove C++ program utility based on regular expressions

Notifications You must be signed in to change notification settings

shakibamoshiri/renrem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

renrem program utility

renrem is an acronym for rename and remove task together.
Since it uses regular expression to match a string, apart from renaming a file, can be used for removing a file. It also has contraction synopsis and both works together to avoid of using command-ling argument, that sometimes it annoys the user. Notice that for spelling you can spell it: ren-rem.


features

Fast:

Only C++ code and plus a little C

Portable:

Only the standard library:

  • std::sstream
  • std::string
  • std::regex
  • cstdio

Colorize the output:

Using ANSI escape code for colorize the output for both match and substitute.

Changeable from std::regex to boost::regex:

Since C++ uses ECMAScript 262 if you are willing to use almost PCRE feature your can modify the code to boost::regex easly.
boost_regex_table
table-source

Index-match ( new feature ):

A great new feature that helps you to substitute a match string as easy as possible.

Lightweight:

Less then 300 lines of code.

Auto zero leading:

Counts each line and adds zero-leading if need.


some screenshots:

On Ubuntu ( with Konsole )

renrem_std_auto_leading_zeros

renrem_std_s_g_i_1_-1_2

renrem_std_s_g_i_1_-1

renrem_std_s_g_i

On Windows ( with cmd, powershell, and cygwin-bash )

01_windows_renrem_std_on_cmd

04_windows_renrem_boost_on_powershel

05_windows_renrem_std_on_bash


License:

GPL3

About

rename and remove C++ program utility based on regular expressions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published