From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 73955 invoked by alias); 28 Feb 2020 18:09:05 -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 73947 invoked by uid 89); 28 Feb 2020 18:09:04 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=H*f:sk:AM6PR03, H*i:sk:AM6PR03, H*r:2002 X-HELO: mail-qt1-f169.google.com Received: from mail-qt1-f169.google.com (HELO mail-qt1-f169.google.com) (209.85.160.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Feb 2020 18:09:03 +0000 Received: by mail-qt1-f169.google.com with SMTP id x8so541386qts.0 for ; Fri, 28 Feb 2020 10:09:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=P6myqVCma1Z+sGzREe6hmZEG9bChk1sFjVsBRGqi7Ug=; b=OLO/AmjZ7iKBA+2pt/7Viw3/sAnrzC8xCWd74p3eLlDEcGe+cXQL+MBrXjPY3jCxa3 c8YZQ/bCWgnmzcDmC7gnEL6p5DYcvDmD7rsKEj+imo/RRT0yFIZ4UEpVC5mXM58XrSqN NleFG4mt7K150aldYvlB6nxVb/bIa6y5mC6ISCUe5PBidHCqUk9d7+83t0RdsQRFDUxj pOQLsDdHSRfLLY1j6xbcMhBtmH0eQa2VkdbIfCjeX++2V6et159FhJlp7OOauC301mQ2 mRtx+yd65+g21YUdAwLKK9002xSZJ7S0YuuK7DgRvIJGsqL4EorQoyvNoOyNzaPi31tv vwyA== MIME-Version: 1.0 Received: by 2002:a0c:e9cc:0:0:0:0:0 with HTTP; Fri, 28 Feb 2020 10:09:01 -0800 (PST) In-Reply-To: References: From: Lee Date: Fri, 28 Feb 2020 18:09:00 -0000 Message-ID: Subject: Re: Has rename syntax changed? To: cygwin@cygwin.com Cc: Fergus Daly Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00269.txt.bz2 On 2/28/20, 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. > What I remember as past behaviour now fails, leaving he filename unaltered. > (Failure in much the same way as mv would fail if the similar attempt was > made.) > (Good old DOS command rename (or the abbreviation ren) used to achieve > multiple-rename in an easy manner that just eludes bash.) > Anyway: has something altered (and quite recently, i think), or am I just > mis-remembering the versatility of the command rename? Try it with the '-v' option $ rename -v anything AnyThing *.ext `anything.ext' -> `AnyThing.ext' `xxanythingxx.ext' -> `xxAnyThingxx.ext' $ rename -v AnyThing anything *.exe rename: *.exe: not accessible: No such file or directory $ rename -v AnyThing anything *.ext `AnyThing.ext' -> `anything.ext' `xxAnyThingxx.ext' -> `xxanythingxx.ext' Lee -- 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