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

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

 



On Sat, Feb 24, 2018 at 6:12 PM, Patrick O'Callaghan
<pocallaghan@xxxxxxxxx> wrote:
> On Sat, 2018-02-24 at 23:40 +0100, Wolfgang Pfeiffer wrote:
>> On Sat, 24 Feb 2018 13:14:49 -0500
>> Tom H <tomh0665@xxxxxxxxx> wrote:
>>>
>>> Is "rename" provided by util-linux or is it a perl-provided script?
>>>
>>> The util-linux syntax is
>>>
>>> rename search_for replace_with <files>
>>>
>>> while the perl-script syntax is
>>>
>>> rename 's/search_for/replace_with/' <files>
>>
>> thanks for the latter sed syntax - good to know on Debian, IINM ...
>
> I wonder if that version is actually prename ('dnf install prename')
> under a different name, which would be nicely ironic ...

prename! Yes, thanks.

It's also rejigged my memory that previous versions of Debian had
"prename". It was provided by "perl" itself and it was the same as
Fedora's "prename". There was an alternatives-created "rename" symlink
to it.

Looking at the control and spec files,

Fedora's rename comes from

http://search.cpan.org/~pederst/rename-1.9/bin/rename.PL

Debian's rename comes from

http://search.cpan.org/~rmbarker/File-Rename-0.20/lib/File/Rename.pm
_______________________________________________
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