Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michael-fadely/renex

Simple regex rename utility.
https://github.com/michael-fadely/renex

Last synced: 21 days ago
JSON representation

Simple regex rename utility.

Awesome Lists containing this project

README

        

# renex
Simple regex rename utility.

## Usage
```renex [arguments] [path(s)]```

## Arguments
```
-d, --dry Performs a dry run, skipping the actual rename step. Matches and replacement results will be displayed.
-m, --match Regex pattern to match.
-r, --replace Text to replace the pattern with.
-R, --recursive Traverse all subdirectories.
-p, --pattern Glob pattern to use when scanning a directory (e.g: *.txt)
```

## Example
```renex -m "(\d+)-(\d+)-(\d+)" -r "$3-$1-$2" -p *.txt --recursive "../some path"```