Re: Which FAT mount options to change the case of filenames?
- From: Lew Pitcher <lpitcher@xxxxxxxxxxxx>
- Date: 27 Apr 2007 17:45:43 -0700
On Apr 27, 3:54 am, Jef Driesen <jefdrie...@xxxxxxxxxxxxxxxxxxx>
wrote:
Duinen wrote:
Jef Driesen wrote:
Lew Pitcher wrote:
On Apr 26, 4:40 am, Jef Driesen <jefdrie...@xxxxxxxxxxxxxxxxxxx>
wrote:
When I try to change the case of a file on a fat32 partition, I get an
error:
$ touch ABC
$ mv ABC abc
mv: 'ABC' and 'abc' are the same file
Just my curiosity here, WHY do you need to change the case? (I have
never understood why *nix allows names that differ in case only for some
names and not for others.)
The files in my image collection do not have a consistent case now. I
have variations like "IMG_xxxx.JPG", "IMG_xxxx.jpg" and "img_xxxx.jpg"
(the numbers are unique) and I want to have only one naming scheme.
for file in *.[Jj][Pp][Gg] ;
do
UC=`echo $file | tr a-z A-Z`
[ "$file" = "$UC" ] || mv "$file" "$UC"
done
HTH
--
Lew
.
- Follow-Ups:
- Re: Which FAT mount options to change the case of filenames?
- From: John Hasler
- Re: Which FAT mount options to change the case of filenames?
- References:
- Which FAT mount options to change the case of filenames?
- From: Jef Driesen
- Re: Which FAT mount options to change the case of filenames?
- From: Lew Pitcher
- Re: Which FAT mount options to change the case of filenames?
- From: Jef Driesen
- Re: Which FAT mount options to change the case of filenames?
- From: Duinen
- Re: Which FAT mount options to change the case of filenames?
- From: Jef Driesen
- Which FAT mount options to change the case of filenames?
- Prev by Date: Re: Ubuntu 6.10 => 7.04 "upgrade" ?
- Next by Date: Re: Which FAT mount options to change the case of filenames?
- Previous by thread: Re: Which FAT mount options to change the case of filenames?
- Next by thread: Re: Which FAT mount options to change the case of filenames?
- Index(es):
Relevant Pages
|