Has rename syntax changed?

Hans-Bernhard Bröker HBBroeker@t-online.de
Wed Mar 4 05:09:00 GMT 2020

Am 04.03.2020 um 00:25 schrieb L A Walsh:
> On 2020/02/28 04:38, Fergus Daly wrote:
>> I am almost certain that the command
>> $ rename "anything" "AnyThing" *.ext
>> would alter the string from lc to uc as shown, anywhere it occurred in 
>> any filename in *.ext in the current directory.
> isn't that they same as "mv anything.xxx Anything.xxx" ?

No.  For three reasons:

*) it's .ext, not .xxx :-)
*) it will find and replace 'anything' _anywhere_in_ the filename, not 
just in the basename.
*) it will do so on _all_ files in the cwd matching '*.ext', not just a 
single one --- that's its entire purpose.

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list