coreutils
[Top][All Lists]
Advanced

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

Re: Add new command


From: Assaf Gordon
Subject: Re: Add new command
Date: Fri, 2 Aug 2019 09:18:03 -0600
User-agent: Mutt/1.11.4 (2019-03-13)

Hello,

On Fri, Aug 02, 2019 at 07:12:06PM +0430, Saeed Dehqan wrote:
> How do I add a command called rn?

In general,
please follow the instructions in the README-hacking
and HACKING files to prepare a patch for a new command.
https://git.savannah.gnu.org/cgit/coreutils.git/tree/README-hacking
https://git.savannah.gnu.org/cgit/coreutils.git/tree/HACKING

See past examples of such patches here:
 https://git.savannah.gnu.org/cgit/coreutils.git/log/?qt=grep&q=new+program
(Note all the files they modify.)

Since this will be a large contribution (i.e., more than 10 lines of
code), a copyright assignment will be required.
Please see here:
https://www.gnu.org/licenses/why-assign.en.html
Then fill and send this form:
https://git.savannah.gnu.org/cgit/gnulib.git/tree/doc/Copyright/request-assign.future

> This is an advanced command to rename large-scale files and accelerations.
> This command supported Regexes and Counters.

Before re-inventing the wheel, it is worth checking what other programs
exist for such functionality.
The basic "rename" program existed for some decades and allows regex renames.
Many other programs provide more advanced options (and even GUI),
like:
https://www.ostechnix.com/how-to-rename-multiple-files-at-once-in-linux/
https://packages.debian.org/search?keywords=rename

A command that replicate existing functionality is less likely to be
accepted in gnu coreutils.

regards,
 - assaf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]