1.0.3 • Published 4 years ago
rename-by-ext v1.0.3
rename-by-ext - Rename files by their extension
The idea is to rename two lists of files by their extension. For an example movie files and their subtitles. It's necessary for them to be in the same order.
Installation
npm install -g rename-by-ext
Usage
rename-by-extension PATH --lead LEAD_EXTENSION --follow FOLLOW_EXTENSION
Example
ls .
movie01.mp4
movie02.mp4
subtitle01.srt
subtitle02.srt
rename-by-extension . --lead mp4 --follow srt
ls .
movie01.mp4
movie01.srt
movie02.mp4
movie02.srt