Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serpent7776/rer
regular expression based file renamer
https://github.com/serpent7776/rer
commandline regex regular-expression rename rename-files utility
Last synced: 16 days ago
JSON representation
regular expression based file renamer
- Host: GitHub
- URL: https://github.com/serpent7776/rer
- Owner: serpent7776
- License: bsd-2-clause
- Created: 2014-10-28T20:14:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-19T19:58:33.000Z (over 7 years ago)
- Last Synced: 2024-11-17T12:34:03.151Z (3 months ago)
- Topics: commandline, regex, regular-expression, rename, rename-files, utility
- Language: C
- Homepage:
- Size: 40 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
rer
===regular expression based file renamer
rer is a tool that rename files that matches given pattern.
Each file name given as argument is matched against pattern.
If a match is found file is renamed according to given replacement using PCRE regular expression.## Usage
rer /pattern/replacement/modifiers file [file [...]]
## Examples
rename foobar to foobaz
$ rer /bar/baz/ foobar
Swap first word with second, renaming foo-bar to bar-foo, foo-baz to baz-foo and foo-123 to 123-foo
$ rer '/(\w+)-(\w+)/\2-\1/' foo-bar foo-baz foo-123