From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e219d94b946dfc26 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news4.google.com!news.glorb.com!news-peer-lilac.gradwell.net!not-for-mail From: Rob Norris Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line and wildcards Date: Fri, 23 Feb 2007 10:47:53 +0000 Message-ID: References: <45dcaed8_6@news.bluewin.ch> <1172132169.423514.271890@s48g2000cws.googlegroups.com> <1172164072.071896.197990@j27g2000cwj.googlegroups.com> X-Newsreader: Forte Free Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Host: 20.133.0.1 X-Trace: 1172227598 news.gradwell.net 758 dnews/20.133.0.1:50787 X-Complaints-To: news-abuse@gradwell.net Xref: g2news2.google.com comp.lang.ada:9452 Date: 2007-02-23T10:47:53+00:00 List-Id: On 22 Feb 2007 09:07:52 -0800, "Adam Beneschan" wrote: >Sigh... this has been one of my pet peeves with Unix for a long time. >With other operating systems I've worked with, you can enter a command >like > > rename *.ads *.ada > >for instance, to rename a bunch of files. Unix makes this difficult. >(Yes, I know how to use "foreach" in csh... but still...) > > -- Adam Going off topic a bit.. On my Debian system the rename command takes a perl command, then the files you want to apply it to. rename s/ads/ada/ *ads Redhat ones only have substition command so (i think): rename ads ada *ads