LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-14-2002, 01:02 AM   #1
griv
Member
 
Registered: Jul 2001
Location: Saint-Cloud (France)
Distribution: Ubuntu 6.06
Posts: 35

Rep: Reputation: 15
Cool convert filenames case


Is there somebody who knows how to convert easily all filenames of a directory into
lower case ? There is certainly an utility or bash script to do that, but I didn't find any
so far, and I don't have time for now to write one... I'll have to learn bash commands
before :-). Actually I saw the "Ark" archive program could do that, but I didn't succeed
to make the functionality work.
Thank you in advance for your help !
 
Old 01-14-2002, 02:25 AM   #2
speck
Member
 
Registered: Nov 2001
Location: California
Distribution: Slackware 14.1
Posts: 272

Rep: Reputation: 54
If you want a GUI (and have KDE2) try Krename . If you want a command line tool, then rename .


Speck
 
Old 01-14-2002, 06:06 AM   #3
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
for i in *; do mv "$i" "`echo $i | tr A-Z a-z`"; done

GUI? pahh not likely!

Last edited by bluecadet; 01-14-2002 at 06:07 AM.
 
Old 01-14-2002, 10:56 PM   #4
griv
Member
 
Registered: Jul 2001
Location: Saint-Cloud (France)
Distribution: Ubuntu 6.06
Posts: 35

Original Poster
Rep: Reputation: 15
Thank you very much ! I'll try them very soon.
 
Old 01-14-2002, 10:59 PM   #5
griv
Member
 
Registered: Jul 2001
Location: Saint-Cloud (France)
Distribution: Ubuntu 6.06
Posts: 35

Original Poster
Rep: Reputation: 15
ATTN: bluecadet

Thank you very much ! I tried it : that works fine.
 
Old 01-15-2002, 02:41 AM   #6
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
you expected anythign less???
 
Old 01-17-2002, 11:10 PM   #7
griv
Member
 
Registered: Jul 2001
Location: Saint-Cloud (France)
Distribution: Ubuntu 6.06
Posts: 35

Original Poster
Rep: Reputation: 15
Of course no ! But I'm surprised by the power of
a simple command line !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filenames eponymous Linux - Software 3 05-25-2005 06:36 AM
Converting sLoPPy cASE to Pretty Case with tr lowpro2k3 Programming 4 04-13-2005 08:13 PM
Why are all my upper case files being shown as lower case?? [Kernel 2.6.9-1.667 FC3] t3gah Fedora 4 03-11-2005 04:09 PM
Lower case to upper case letter sudhasmyle Programming 1 12-03-2004 04:15 AM
Forward slashes in filenames. Convert from 2f to Colon chrisk5527 Linux - General 3 03-26-2004 03:22 PM


All times are GMT -5. The time now is 03:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration