Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/michael-fadely/renex
- Owner: michael-fadely
- License: mit
- Created: 2015-06-25T05:35:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-15T17:28:33.000Z (almost 6 years ago)
- Last Synced: 2024-10-27T20:38:18.537Z (2 months ago)
- Language: D
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"```