mass renaming

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeffrey Pyne
Date:  
Subject: mass renaming
My favorite way to do this (in (pd)ksh) is:

for file in *.doc
do
    mv $file `echo $file | sed -e 's/\.doc$/\.txt/'`
done


There are 1001 ways to skin a cat, though.

-----Original Message-----
From: Don Harrop [mailto:don@nis4u.com]
Sent: Tuesday, August 22, 2000 3:38 PM
To:
Subject: mass renaming


I'm trying to rename a ton of files with a certain extension to another
extension type. If this is possible with the mv command I can't figure out
the syntax.. Anyone know how to do this?

Don


________________________________________________
See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post
to the list quickly and you use Netscape to write mail.

Plug-discuss mailing list -
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss