Re: basic issue/question -- renaming in mass a bunch of files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patrick O'Callaghan wrote:
> I wonder if that version is actually prename ('dnf install prename')
> under a different name, which would be nicely ironic ...

Heh.  I think they're different.  I'm not a Debian user
though, so I could be way off on what follows. :)

This gets quite messy.  The /usr/bin/rename command is
managed by alternatives in Debian.  The default for rename
in a docker container of Debian 8 is file-rename.

The file-rename command comes from the rename package.  It's
installed as file-rename rather than rename based on this
commit:

    https://salsa.debian.org/perl-team/modules/packages/rename/commit/642262b4

The source of the Debian rename package is the perl
File::Rename module, here:

    https://metacpan.org/release/File-Rename

The Fedora prename package points to:

    http://search.cpan.org/dist/rename/

That's a different perl rename tool (since you can never
have too many rename tools, obviously).  Debian ships
prename as well.  It's in the rename alternatives group.

Debian also ships the util-linux rename as rename.ul, but it
doesn't seem to be in the alternatives group for rename.

Clearly, using the command in a script would be insane, as
you'd have more lines of code to determine which version you
were using than it would take to just rename the files using
whatever language the script was written in. :)

-- 
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A diplomat is a person who can tell you to go to Hell in such a way
that you actually look forward to the trip.
    -- Anonymous

Attachment: signature.asc
Description: PGP signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux