Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st July 2010, 04:28 PM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104
linuxfedorafirefox
Mass rename of files

I just downloaded a copy of the Old Testament onto my laptop from the Windows side of my desktop. Alas, all of the links are in lower case and all of the file names came across in upper. Can anybody suggest a way to rename all of the files in a directory to be in lower case instead of upper?
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #2  
Old 1st July 2010, 04:37 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Re: Mass rename of files

You could use a script like this:
Code:
#!/bin/bash
for file in `ls -1`
do
    filelo=`echo $file | awk '{print tolower($0)}'`
    mv $file $filelo
done
Reply With Quote
  #3  
Old 1st July 2010, 05:02 PM
Keldorn's Avatar
Keldorn Offline
Registered User
 
Join Date: Jun 2008
Location: Russia
Age: 25
Posts: 515
linuxfedorafirefox
Re: Mass rename of files

krename is nice programm - try it.
Reply With Quote
  #4  
Old 2nd July 2010, 06:57 AM
sidebrnz's Avatar
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 63
Posts: 2,104
linuxfedorafirefox
Re: Mass rename of files

That script worked just fine. Thanx! I presume there's a toupper funcion as well if I ever need it?
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #5  
Old 2nd July 2010, 08:00 AM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Re: Mass rename of files

Of course...
Reply With Quote
Reply

Tags
files, mass, rename

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rename files with command line bigmacbb63 Security and Privacy 5 1st May 2009 02:47 AM
How to rename a list of files jimqi Using Fedora 6 2nd July 2008 01:32 AM
how to create mass backups of files? dmbyer Using Fedora 2 19th April 2008 03:48 PM
how may I run mmv to rename multiple files? zl2k Using Fedora 2 27th October 2005 02:38 PM


Current GMT-time: 22:35 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat