delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=XAugIQqiPMSCxci/ | |
gq8VhhQbMcARHo2ntcyp3lyzsZUne/alS4X5qNsP16qljSkrS0pi2pSG/ujrzBs3 | |
QMZgpY74n8Em8btJSrUqoSgqjZrCwwjUW8FzC18nYoURd7Ty74GYtz3FT3Pc56Tw | |
Y0WbEvjNjz9lhM2neAOikewiF8k= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=mjkWGDuSZu4+Ji5c11lLmw | |
pkWrk=; b=K8dulTV91hGuVU7A+E8ylJjHk7RAbBzRcGamFEnCuvYLxrZmt0UFM/ | |
IXkJei7VQFqodIK7SYPrR8UXG5JOqRzC8SvxoqQHPoZme8NaaTbAfT+ZNNLp0maa | |
HPYErexobUXbRtL9+4JT2o+VXmxB1z3rQ6UmlRLTYdmT4oBvb5M20= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 |
Subject: | Re: Has rename syntax changed? |
To: | cygwin AT cygwin DOT com |
References: | <AM6PR03MB5282DB8DBC61B8331D880434A4E80 AT AM6PR03MB5282 DOT eurprd03 DOT prod DOT outlook DOT com> <5E5EE76B DOT 8000202 AT tlinx DOT org> <bc294a03-2796-a53e-c56f-a015a60f557c AT t-online DOT de> <5E5F2606 DOT 3070201 AT tlinx DOT org> |
From: | =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= <HBBroeker AT t-online DOT de> |
Message-ID: | <b4493fb3-7dc7-2363-5d81-30d5b5441881@t-online.de> |
Date: | Wed, 4 Mar 2020 20:45:15 +0100 |
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> |
X-IsSubscribed: | yes |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |