[opensuse] Lowercase filenames to uppercase?
Hello everybody. After updating from openSUSE 10.2 (32 bit) to the gorgeous green 10.3 and restoring the backup from a USB-hdd, all filenames (.doc-, .odt-, .rtf- and .pdf-files) in a folder on the HTTP-server are lowercase -- is there a way to make them uppercase again? The files are in a lot of subfolders but there is only one level of subfolders. I've Googled for 'uppercase filename linux suse' but didn't find anything I could use. I'm thankfull for any tips, tricks or hints. /Lars -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 10/06/2007 04:26 AM Lars Norén wrote:
Hello everybody. After updating from openSUSE 10.2 (32 bit) to the gorgeous green 10.3 and restoring the backup from a USB-hdd, all filenames (.doc-, .odt-, .rtf- and .pdf-files) in a folder on the HTTP-server are lowercase -- is there a way to make them uppercase again? The files are in a lot of subfolders but there is only one level of subfolders. I've Googled for 'uppercase filename linux suse' but didn't find anything I could use. I'm thankfull for any tips, tricks or hints. /Lars
See "man tr". -- The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts. - Bertrand Russell, philosopher, mathematician, author, Nobel laureate (1872-1970) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thank you, but I can't get it to work. I open a terminal window in the folder where the files are, type: tr Z z and hit ENTER, but nothing happens. It just sits there. No error messages, no nothing. Am I missing something? /Lars ken skrev:
On 10/06/2007 04:26 AM Lars Norén wrote:
Hello everybody. After updating from openSUSE 10.2 (32 bit) to the gorgeous green 10.3 and restoring the backup from a USB-hdd, all filenames (.doc-, .odt-, .rtf- and .pdf-files) in a folder on the HTTP-server are lowercase -- is there a way to make them uppercase again? The files are in a lot of subfolders but there is only one level of subfolders. I've Googled for 'uppercase filename linux suse' but didn't find anything I could use. I'm thankfull for any tips, tricks or hints. /Lars
See "man tr".
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 06 October 2007 04:12, Lars Norén wrote:
ken skrev:
On 10/06/2007 04:26 AM Lars Norén wrote:
Hello everybody. After updating from openSUSE 10.2 (32 bit) to the gorgeous green 10.3 and restoring the backup from a USB-hdd, all filenames (.doc-, .odt-, .rtf- and .pdf-files) in a folder on the HTTP-server are lowercase -- is there a way to make them uppercase again? The files are in a lot of subfolders but there is only one level of subfolders. I've Googled for 'uppercase filename linux suse' but didn't find anything I could use. I'm thankfull for any tips, tricks or hints. /Lars
See "man tr".
Thank you, but I can't get it to work. I open a terminal window in the folder where the files are, type:
tr Z z
The "tr" program is a filter. It reads its standard input and writes its standard output. Use pipes and / or file redirection.
and hit ENTER, but nothing happens. It just sits there. No error messages, no nothing. Am I missing something? /Lars
However, nothing would have changed the alphabetic case of your files on the disk, so I'm guessing that drive is formatted as FAT and it is the settings for mounting that drive is where the case-conversion is happening. This is usually configured in your /etc/fstab. On my system, which is running 10.0, the documentation is in the section-8 manual for mount: "man 8 mount". The option is case= with the allowable values "lower" and "asis." It claims the default is case=lower, which probably explains what you're seeing. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Oct 6 2007 05:09, ken wrote:
On 10/06/2007 04:26 AM Lars Norén wrote:
Hello everybody. After updating from openSUSE 10.2 (32 bit) to the gorgeous green 10.3 and restoring the backup from a USB-hdd, all filenames (.doc-, .odt-, .rtf- and .pdf-files) in a folder on the HTTP-server are lowercase -- is there a way to make them uppercase again? The files are in a lot of subfolders but there is only one level of subfolders. I've Googled for 'uppercase filename linux suse' but didn't find anything I could use. I'm thankfull for any tips, tricks or hints. /Lars
See "man tr".
No, see man mmv. ( http://jengelh.hopto.org/linux/usr_mmv.php ) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 06 October 2007 10:26:40 Lars Norén wrote:
Hello everybody. After updating from openSUSE 10.2 (32 bit) to the gorgeous green 10.3 and restoring the backup from a USB-hdd, all filenames (.doc-, .odt-, .rtf- and .pdf-files) in a folder on the HTTP-server are lowercase -- is there a way to make them uppercase again? The files are in a lot of subfolders but there is only one level of subfolders. I've Googled for 'uppercase filename linux suse' but didn't find anything I could use. I'm thankfull for any tips, tricks or hints. /Lars
What filesystem do you use on the usb hard drive? It sounds like it has a windows file system which is being mounted with a mount option to make all file names lowercase Next question: why would anyone want to have filenames in all-uppercase? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson skrev:
On Saturday 06 October 2007 10:26:40 Lars Norén wrote:
Hello everybody. After updating from openSUSE 10.2 (32 bit) to the gorgeous green 10.3 and restoring the backup from a USB-hdd, all filenames (.doc-, .odt-, .rtf- and .pdf-files) in a folder on the HTTP-server are lowercase -- is there a way to make them uppercase again? The files are in a lot of subfolders but there is only one level of subfolders. I've Googled for 'uppercase filename linux suse' but didn't find anything I could use. I'm thankfull for any tips, tricks or hints. /Lars
What filesystem do you use on the usb hard drive?
vfat.
It sounds like it has a windows file system which is being mounted with a mount option to make all file names lowercase
I've used it in openSUSE 10.2 and then the file names were uppercase. I guess something is changed in 10.3, somewhere...
Next question: why would anyone want to have filenames in all-uppercase?
Yeah, I know, it would have been a lot smarter to name the files after the corresponding id-number in the database, instead I choose to name them after the course code (it's a system for managing syllabuses). It's a long story... And there is (or perhaps was) at least one good reason for it :) /Lars -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Oct 6 2007 19:29, Lars Norén wrote:
What filesystem do you use on the usb hard drive?
vfat.
All-upper names are automatically transformed to lower. I mean, where is the point in COMMAND.COM screaming at you if a gentle command.com would do? So. "Mixed Case.doc" of course is preserved. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-10-06 at 19:29 +0200, Lars Norén wrote:
What filesystem do you use on the usb hard drive?
vfat.
case is not relevant in vfat. Check "man 8 mount" to see if there is some option you can apply; in 10.2 I didn't see it. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHCAiutTMYHG2NR9URAmq6AJ94mZyGiJTKGbFFO1Z1uR0PRqepvACfY6VK BVkZC2AdOswTbUcszDrWK8I= =XWw4 -----END PGP SIGNATURE-----
On Saturday 06 October 2007 15:14, Carlos E. R. wrote:
The Saturday 2007-10-06 at 19:29 +0200, Lars Norén wrote:
What filesystem do you use on the usb hard drive?
vfat.
case is not relevant in vfat.
There's a difference between recording alphabetic case and being sensitive to it during look-up. Furthermore, Windows filesystems are a mixed and ambivalent lot. I know that NTFS records case distinction but, by default, does not respect them during look-up. But it can be configured to be fully case-sensitive.
Check "man 8 mount" to see if there is some option you can apply; in 10.2 I didn't see it.
There is, as I noted. The option is "case=" and the allowed values are "lower" (convert names to all lower-case characters) and "asis" (present names as recorded in the file system). Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-10-06 at 16:08 -0700, Randall R Schulz wrote:
case is not relevant in vfat.
There's a difference between recording alphabetic case and being sensitive to it during look-up.
Furthermore, Windows filesystems are a mixed and ambivalent lot. I know that NTFS records case distinction but, by default, does not respect them during look-up. But it can be configured to be fully case-sensitive.
But this is not ntfs, but vfat. In vfat case is not relevant. It will be recorded for long names, but it is not relevant, meaning that NaMe and name and NAME refers to the same file.
Check "man 8 mount" to see if there is some option you can apply; in 10.2 I didn't see it.
There is, as I noted. The option is "case=" and the allowed values are "lower" (convert names to all lower-case characters) and "asis" (present names as recorded in the file system).
Yes, I saw that, but only for "hpfs", not "vfat": ] Mount options for hpfs ... ] case=lower / case=asis ] Convert all files names to lower case, or leave them. (Default: case=lower.) And, for vfat the only thing it mentions is this: ] Mount options for vfat ... ] posix Allow two files with names that only differ in case. The point is: Is 10.3 different in this respect? However, there are these options for vfat that might apply : ] shortname=[lower|win95|winnt|mixed] ] ] Defines the behaviour for creation and display of filenames ] which fit into 8.3 characters. If a long name for a file ] exists, it will always be preferred display. There are four ] modes: ] ] lower Force the short name to lower case upon display; ] store a long name when the short name is ] not all upper case. ] ] win95 Force the short name to upper case upon display; ] store a long name when the short name is not all ] upper case. ] ] winnt Display the shortname as is; store a long name when ] the short name is not all lower case or ] all upper case. ] ] mixed Display the short name as is; store a long name when ] the short name is not all upper case. ] ] The default is "lower". ] So, I think the OP could try 'mixed' or 'win95'. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHCEP6tTMYHG2NR9URAkK3AJ9Ekky59oQvJmvZQheimRtiogYEcwCaAuy1 tVm9xUZQljZETwd+pRK9k8Q= =rDLj -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Anders Johansson
-
Carlos E. R.
-
Jan Engelhardt
-
ken
-
Lars Norén
-
Randall R Schulz