From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 110648 invoked by alias); 3 Mar 2020 23:46:27 -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 110518 invoked by uid 89); 3 Mar 2020 23:46:11 -0000 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 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; Tue, 03 Mar 2020 23:46:08 +0000 Received: from fwd36.aul.t-online.de (fwd36.aul.t-online.de [172.20.26.137]) by mailout03.t-online.de (Postfix) with SMTP id 0B2534216E33 for ; Wed, 4 Mar 2020 00:46:06 +0100 (CET) Received: from [192.168.178.26] (Jr8X0gZfrhG41-lQcWrzo0KQv2jO8F1Z9zLrzICXd3cKRHa9iXQUoTXqDTROCrmgi5@[79.228.65.18]) by fwd36.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1j9HEW-3lGQEa0; Wed, 4 Mar 2020 00:45:52 +0100 Subject: Re: Has rename syntax changed? To: cygwin@cygwin.com References: <5E5EE76B.8000202@tlinx.org> From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Message-ID: Date: Wed, 04 Mar 2020 05:09: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: <5E5EE76B.8000202@tlinx.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2020-03/txt/msg00063.txt 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