mass renaming

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Furmanek, Greg
Date:  
Subject: mass renaming
for i in `ls . | grep *.ext | sed 's/\.ext//'`; do mv $i.ext $i.other; done

this should do it.

-> -----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
->