NAME

mv-reverse - Rename a file, with reversed order of arguments

VERSION

This document describes version 0.005 of mv-reverse (from Perl distribution App-FileRenameUtils), released on 2020-08-21.

SYNOPSIS

% rename-to-from <new-filename> <current-filename>
% mv-reverse     <new-filename> <current-filename>

DESCRIPTION

This utility is handy if you happen to just rename a file that has a long name:

% mv some-rather-long-file-name.txt some-other-name

and made a mistake and want to reverse the previous operation:

% rename-to-from some-rather-long-file-name.txt some-other-name

or:

% mv-reverse     some-rather-long-file-name.txt some-other-name

On the command-line, you just press Ctrl-A (or some other equivalent shortcut to move to the start of line) and replace mv with rename-to-from (or mv-reverse).

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/App-FileRenameUtils.

SOURCE

Source repository is at https://github.com/perlancar/perl-App-FileRenameUtils.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-FileRenameUtils

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.

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.