NAME
App::perlmv::scriptlet::add_suffix - Add suffix to filenames
VERSION
This document describes version 0.001 of App::perlmv::scriptlet::add_suffix (from Perl distribution App-perlmv-scriptlet-add_suffix), released on 2020-08-22.
SYNOPSIS
With files:
foo.txt
bar-new.txt
baz.txt-new
This command:
% perlmv add-suffix -a suffix=-new *
will rename the files as follow:
foo.txt -> foo.txt-new
bar-new.txt -> bar-new.txt-new
baz.txt-new baz.txt-new-new
This command:
% perlmv add-suffix -a suffix=-new- -a before_ext=1 *
will rename the files as follow:
foo.txt -> foo-new.txt
bar-new.txt -> bar-new-new.txt
baz.txt-new baz-new.txt-new
This command:
% perlmv add-suffix -a suffix=-new- -before_ext=1 -a avoid_duplicate_suffix=1 *
will rename the files as follow:
foo.txt -> foo-new.txt
baz.txt-new baz-new.txt-new
SCRIPTLET ARGUMENTS
Arguments can be passed using the -a
(--arg
) perlmv option, e.g. -a name=val
.
avoid_duplicate_suffix
Avoid adding suffix when filename already has that suffix.
before_ext
Put suffix before filename extension.
suffix
Required. The suffix string.
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/App-perlmv-scriptlet-add_suffix.
SOURCE
Source repository is at https://github.com/perlancar/perl-App-perlmv-scriptlet-add_suffix.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-perlmv-scriptlet-add_suffix
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
SEE ALSO
App::perlmv::scriptlet::add_prefix
The remove-common-suffix
scriptlet
perlmv (from App::perlmv)
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2020 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.