You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amano.kenji 61bf31e95e Fix a comment in lib/file-name-editor. 4 months ago
bin Fix a comment in lib/file-name-editor. 4 months ago
lib/File/Name Confirm prompt, overwrite option, cyclic renaming. 4 months ago
.gitignore First commit 4 months ago
META6.json Minor change to termios usage in file-name-editor 4 months ago
README.md Add installation section. 4 months ago

README.md

File::Name::Editor

Rename files in any text editor that you like.

Cyclic renames such as A to B, B to C, and C to A are possible.

Programmatic Usage

use File::Name::Editor;

my @files = ("file1", "file2", ...);
my $editor = %*ENV<EDITOR>;
edit-file-names(@files, $editor);

If there are problems, exceptions are thrown. Catch exceptions if necessary.

edit-file-names(@files, $editor, :overwrite);

allows File::Name::Editor to overwrite files not in @files.

Command Line Usage

file-name-editor

prints how to use it.

Installation

You can install it with zef.

zef install File::Name::Editor

This installs file-name-editor in ~/.raku/bin or some other place.

If your linux distribution has it, you can install it with your distribution's package manager.