Re: Renaming/Moving a Group of Filenames

From: Mark Monroe (mark.monroe@FORMSANDSUPPLY.COM)
Date: Mon Feb 02 2004 - 09:52:49 EST


Thanks to everyone for their help with this. This is a great list with a great group of folks.

Mark

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
Mark Monroe
Sent: Friday, January 30, 2004 11:01 AM
To: aix-l@Princeton.EDU
Subject: Renaming/Moving a Group of Filenames

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
Your ISP has scanned this email for Viruses and Spam Control.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:33 EDT