delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/03/03/18:47:21

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: <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=-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: <AM6PR03MB5282DB8DBC61B8331D880434A4E80 AT AM6PR03MB5282 DOT eurprd03 DOT prod DOT outlook DOT com> <5E5EE76B DOT 8000202 AT tlinx DOT org>
From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= <HBBroeker AT t-online DOT de>
Message-ID: <bc294a03-2796-a53e-c56f-a015a60f557c@t-online.de>
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>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019