/prv

A terminal-based utility for mass-renaming files in Perl.

Primary LanguagePerlMIT LicenseMIT

prv

A terminal-based utility for mass-renaming files in Perl.


Summary

This Perl utility allows users to easily mass-rename files in a directory through a terminal interface. You can interactively edit filenames and choose to keep file extensions unchanged using the -k or --keep option. Additionally, you can filter files by specifying file extensions with the -f or --filter option.


Download and Install

# Download
$ git clone https://github.com/scriptprivate/prv && cd prv

# Install dependencies
$ cpanm --installdeps .

Commands

COMMAND           FUNCTION
/path/to/dir      Specify the directory containing files to rename
-k, --keep        Keep the file extensions unchanged during renaming
-f, --filter      Filter files by specified extensions

Examples:

perl prv.pl /path/to/directory
perl prv.pl /path/to/directory -k
perl prv.pl /path/to/directory --keep
perl prv.pl /path/to/directory -k -f .jpg .png
perl prv.pl /path/to/directory --keep --filter .jpg .png