Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scriptprivate/prv

A terminal-based utility for mass-renaming files in Perl.
https://github.com/scriptprivate/prv

perl rename

Last synced: 27 days ago
JSON representation

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

Awesome Lists containing this project

README

        



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

```bash
# 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

```

---