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=lkxjD+83L1yahxOT otmuuNQ2Iaxkyf1cYCy+VT41ugc/ca+o5dHioZvJdO6W/OUsvjo2daZPW44VFWc7 +PXGjmK4TNSvxGdaNsRxbztL5OO6qQfuHOGnmEkafwEKN7T1oSe3s4AzmRL+LZb/ wnqUv3+mGxZTYQgUZscVAyYfg+o= 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=nlSKqW7Bj31WdXHLVNw0MT 3fR5U=; b=jPx8Zn1SjTT9StKUx7tR7pHN52F+uZgCVAnJvbZyznrC3taDXFZF3n HQJVOQVUGLQ5z4ssELa9sZnfPJ5x0Je16ZfEnqAhDJGjunXst7KqjOuxLJJ8p5uc jtQP04LemK2wR8eW0tqCuvr8vRb5dLsAD473sXj8jymSQHm1L27A4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-6.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*f:sk:5E5EE76, Walsh, H*MI:sk:5E5EE76, walsh X-HELO: mailout03.t-online.de Subject: Re: Has rename syntax changed? To: cygwin AT cygwin DOT com References: <5E5EE76B DOT 8000202 AT tlinx DOT org> From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Message-ID: Date: Wed, 4 Mar 2020 00:45:52 +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: <5E5EE76B.8000202@tlinx.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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