Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 09-16-2005, 04:24 AM   #1
LQ Newbie
Registered: Sep 2005
Posts: 11

Rep: Reputation: 0
upper case letter

Burned a dir in Mandrake but when i copied it to my windows distribution all directorys where written in upper case letter. Is there any way to convert the directory names to common letters?
Old 09-16-2005, 08:53 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
By "common letters" I assume you mean lowercase?

You could apply the toupper() function from a bash script (which works as toupper or tolower to change case from upper to lower or lower to upper.
Old 09-17-2005, 09:57 AM   #3
LQ Newbie
Registered: Sep 2005
Posts: 11

Original Poster
Rep: Reputation: 0
Yes, to lower case letters.
From a bash script? Ok how would i do ttah???

Thank you for your time.
Old 09-18-2005, 06:58 AM   #4
Registered: May 2005
Posts: 378

Rep: Reputation: 33
for a in *
    mv $a $(echo $a | sed 's/.*/\L&/')
    # or
    mv $a $(echo $a | tr '[A-Z]' '[a-z]')
tr is more obvious; the sed trick is a little more obscure, but can earn the admiration of others.


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
Cannot add user with UPPER-case characters awesomejt Fedora 10 07-19-2007 12:13 AM
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
K3B problems upper case Veteq Linux - General 2 03-05-2004 11:42 PM
Apache and upper or lower case. dsiguy Linux - General 3 02-04-2003 11:02 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:25 AM.

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