The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Renaming files as per directory dotancohen Shell Programming and Scripting 2 03-22-2008 03:25 PM
Need to change filenames in a particular directory from lowercase to UPPERCASE Duke_Lukem UNIX for Dummies Questions & Answers 7 01-07-2008 03:32 PM
Renaming the files redbeard_06 Shell Programming and Scripting 12 02-27-2007 08:10 AM
renaming and number padding using directory as guide, help TiredOrangeCat Shell Programming and Scripting 3 02-12-2007 09:41 PM
renaming files raguramtgr UNIX for Dummies Questions & Answers 4 09-21-2004 07:57 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-26-2006
Registered User
 

Join Date: Mar 2006
Posts: 1
Cool renaming files in a directory to lowercase

can anybody help me in renaming all the file in a directory to lowercase? script will be helpful.
Reply With Quote
Forum Sponsor
  #2  
Old 03-26-2006
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
Code:
 for filename in *
 do
 newfile=`echo $filename | tr [A-Z] [a-z]
 mv $filename $newfile 
 done
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0