BSD Ports

sysutils/p5-File-Rename 2.02 OpenBSD

renames multiple files

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
sysutils, perl5

Description

File::Rename is a Perl extension that accepts a list of files, passes them through a subroutine, and renames them according to the output of that function.

prename(1) is a command-line tool using this extension, allowing batch changes like these to be made:

  • strip the .bak extension of any *.bak files prename 's/\.bak$//' *.bak

  • translate uppercase names to lower prename 'y/A-Z/a-z/' *

In the other systems

SystemPortVersion
OpenBSDsysutils/p5-File-Rename2.02
FreeBSDsysutils/p5-File-Rename2.01
DragonFlysysutils/p5-File-Rename2.01

Install

Binary package:

pkg_add p5-File-Rename

From the ports tree:

cd /usr/ports/sysutils/p5-File-Rename && make install

Dependencies

No port depends on this one.