From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 71430 invoked by alias); 4 Mar 2020 19:45:33 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 71346 invoked by uid 89); 4 Mar 2020 19:45:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=no, No, H*i:sk:5E5F260, H*MI:sk:5E5F260 X-HELO: mailout03.t-online.de Received: from mailout03.t-online.de (HELO mailout03.t-online.de) (194.25.134.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Mar 2020 19:45:25 +0000 Received: from fwd35.aul.t-online.de (fwd35.aul.t-online.de [172.20.27.145]) by mailout03.t-online.de (Postfix) with SMTP id 08AFC42A8494 for ; Wed, 4 Mar 2020 20:45:17 +0100 (CET) Received: from [192.168.178.26] (GWyUY+ZE8hESBeOf3BbO1sPRLuJ9P8-OO0kH1Ejk8ROZ2Kn7xlmXh93KzHP9qqhZF+@[79.228.65.18]) by fwd35.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1j9ZxD-1PX3Ee0; Wed, 4 Mar 2020 20:45:15 +0100 Subject: Re: Has rename syntax changed? To: cygwin@cygwin.com References: <5E5EE76B.8000202@tlinx.org> <5E5F2606.3070201@tlinx.org> From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Message-ID: Date: Thu, 05 Mar 2020 10:33:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <5E5F2606.3070201@tlinx.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2020-03/txt/msg00082.txt Am 04.03.2020 um 04:52 schrieb L A Walsh: > On 2020/03/03 15:45, Hans-Bernhard Bröker wrote: >> 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. > I'm confused about your terminology. The terminology is fine, but the statement isn't quite. That had better have read: >> it will find and replace 'anything' _anywhere_in_ the filename, not >> just if that's the entire basename. > You said all of the filenames must match '*.ext'. No, I didn't. I said that rename will work on all files in the cwd matching *.ext. Files in the cwd not matching *.ext will be left alone. -- 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