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:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; q=dns; s=default; b=pt00 WaMiengCqZqBP2b8SQ5aiQ8uluTG9UZPkKA30rbDoXfEhzX1DXVveVLq0nFJ4T7w bdVI1aIFQ6XZJ5+HHz85yhtURGI2SQNsXkAdcf0EDkaFzc8hSxAtoACDN32vwNSG eO/R+aMkTG3pz9VTr08PsxHR8R2iVKfstX32lK8= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; s=default; bh=RgUao0rUQ+ arlJc11QIRiLrHWZg=; b=TNCvTAxiTloAtJu1wizg+sSkKdS/xgx0RIG2OY6GSh O2sVjpJOI6QWDXbwkmOox3K7PO0+wi/m1+TVCujrIBQTkgpGnMbTzmxVVVn3ld9d 9WizJdwVkLEXCGMQm9TDTeHFQIu4c3j/R1JCvEhl3d+zYWYgwhXgyzHg58m70nsL 8= 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=-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 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 In-Reply-To: References: From: Lee Date: Fri, 28 Feb 2020 13:09:01 -0500 Message-ID: Subject: Re: Has rename syntax changed? To: cygwin AT cygwin DOT com Cc: Fergus Daly Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes 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