The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 09-20-2007
blowtorch's Avatar
blowtorch blowtorch is offline
Supporter
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,332
You will have to run a loop that goes over all the files in the directory one at a time, because you can only rename one file in one mv command.

If you want to do this, you will have to establish some logic that can translate your current name to your new name. That means that all files will be renamed in a similar manner (removing the spaces in the filename, for instance).
Reply With Quote