The UNIX and Linux Forums  

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 -->
  #1 (permalink)  
Old 11-14-2002
prkwan prkwan is offline
Registered User
  
 

Join Date: Nov 2002
Location: London UK
Posts: 5
Question How to change extension?

How do you write a shell script that change the extension of all the files?

e.g

chext rtf doc

where .rtf is the original extension
and .doc is the new extension

is it something to do with basename?
do I need a for loop?
Please help!

Unix SuperNewbie