https://github.com/pankajpatel/re-namer
Renames the files
https://github.com/pankajpatel/re-namer
Last synced: 14 days ago
JSON representation
Renames the files
- Host: GitHub
- URL: https://github.com/pankajpatel/re-namer
- Owner: pankajpatel
- License: mit
- Created: 2017-07-23T19:45:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:49:49.000Z (over 1 year ago)
- Last Synced: 2025-05-20T04:24:50.738Z (about 1 month ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# file-names-renamer
Renames the files# Usage
To remove last digits with hyphen(-) in file names
```
- Files
- DSC_3634-1.jpg
- DSC_3635-2.jpg
- DSC_3636-3.jpg
- DSC_3637-4.jpg
- DSC_3638-5.jpg
- DSC_3639-6.jpg
- DSC_3640-7.jpg
``````sh
file-names-renamer -d ./testing -s \(\\d.\) -r file\-\$1 -l ./rename.log -i \*.*
```The above command will generate following renaming effect on files
```
- Files
- DSC_3634.jpg
- DSC_3635.jpg
- DSC_3636.jpg
- DSC_3637.jpg
- DSC_3638.jpg
- DSC_3639.jpg
- DSC_3640.jpg
```# Parameters
1. `-d, --dir `: Directory to work on
2. `-i, --input-pattern `: Directory to work on
3. `-s, --search `: Search for the pattern in file name
4. `-r, --replace `: replace with
5. `-l, --log `: replace with
6. `-dr, --dry-run`: replace with