Renaming/Moving a Group of Filenames

From: Mark Monroe (mark.monroe_at_FORMSANDSUPPLY.COM)
Date: 01/30/04

  • Next message: Coyle, Jack: "Re: Renaming/Moving a Group of Filenames"
    Date:         Fri, 30 Jan 2004 11:00:47 -0500
    To: aix-l@Princeton.EDU
    
    

    I need help with something that I think is very simple. My mind is over thinking the process and I cant seem to think of any easy way to accomplish something.

    I have a several files in a directory such as this:

    test001.txt
    test002.txt
    test003.txt
    test004.txt

    I want to rename the extension on the whole list to be something different like this:

    test001.xyz
    test002.xyz
    test003.xyz
    test004.xyz

    Is there an easy way with the cp or mv command to take test*.txt and create the new files as test*.xyz?

    Any thoughts or ideas are appreciated,

    Mark


  • Next message: Coyle, Jack: "Re: Renaming/Moving a Group of Filenames"

    Relevant Pages

    • Re: Renaming/Moving a Group of Filenames
      ... BTW, that is a numeric 1 as an option to the ls command, not an alphabetic ... My mind is over ... > thinking the process and I cant seem to think of any easy way to ...
      (AIX-L)
    • Trance-Formation of America: Epilogue
      ... Mark taught Kelly and me ... therapy destined to restore my memory and, ultimately, my mind. ... The love factor in my recovery is considerable. ... of Tennessee where she is denied qualified therapy for the MK-Ultra ...
      (comp.security.ssh)
    • Re: Food Tasks You Abhor...
      ... mind cutting but I really can't abide the slimy texture of raw birds... ... That's fun, too. ... I HATE the LOUD jarring noise of the coffee grinder (in my dotage I ... bag, mark the date on it, I only do it every few months. ...
      (rec.food.cooking)
    • Re: Noyes on AMA. Again
      ... However, you seem to have everyone catalogued, Bond's a Yank hater, Champ's a chump, Carl's a jerk outsider, Tweak's a redneck and on and on ad Nusbaumium. ... I guess you haven't affixed a label to Alexey yet, as he hasn't been around that long, though there's probably little doubt in anyone's mind it's coming. ... Mark, I'm not trying to marginalize you, but to be painfully honest, I don't give a rat's ass what you think, do, or write, as it has absolutely no effect on me whatsoever, I was only trying to show you the errors of your ways in discussing motorcycle racing with folks who may not share your particular, if not somewhat, warped view of things, that's all.. ...
      (rec.motorcycles.racing)
    • =?ISO-8859-1?Q?Re:_Vendor_JCL_(was:_WHY_IS_JCL_ALLERGIC_..._)?=
      ... It may take a little longer, but I don't mind going into each ... command will change it to upper. ... when I edit the sample member before submitting / saving it. ... of things more than experienced sysprogs who understand ...
      (bit.listserv.ibm-main)