The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 11-14-2002
Vishnu Vishnu is offline
Registered User
  
 

Join Date: Aug 2002
Location: Marlboro, MA
Posts: 114
you will realize that making a search on these forums would give you more ideas... for exampe I searched for "rename files" and I got this link...

Easy way to mass rename files?

I have just modified a small piece of code from the above link...

Quote:
for name in `ls *.rtf`
do
name1=`echo $name | sed -e 's/^\(.*\)\.rtf$/\1\.doc/g'`
mv $name $name1
done
Cheers!
Vishnu.