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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-04-2008
cassj's Avatar
cassj cassj is offline VIP Member  
Supporter
  
 

Join Date: Jul 2003
Location: Interweb
Posts: 109
Give this a shot. This will change ALL filenames in the current directory from lower to UPPER.

Code:
cd /path/to/your/files

for file in * ; do mv $file `echo $file | sed 's/\(.*\)/\U\1/'` ; done