Re: Need a script to convert Uppercase in Lowercasse

tony_at_aplawrence.com
Date: 07/21/03


Date: Mon, 21 Jul 2003 14:48:30 +0000 (UTC)

Arkeos <bigbrother@anonymat.org> wrote:
>Hello,

>I need a script that convert Uppercasse in Lowercasse all files in a
>directorie. But whitout converting the extention.
>An exemple :
>ABCDE.zYx becomes abcde.zYx

>I'm using CSH but I can use other shell.

Well, that's your major problem. Csh is an awful shell. If you must
use anything like that at all (and personally I cannot imagine why
you would), at least use tcsh. But unless you just cannot get
out of csh's awful habits, I'd strongly recommend switching to
ksh or bash. Csh and its clones are used by two kinds of people:
those who were unfortunate enough to have been exposed to it
early on and just don't want to make the effort to learn something
else (and who can blame them?) and wannabees who have the very mistaken
impression that it's "cool". It ain't cool: it's clumsy, broken,
and a major pita. The historical rationale was that it was good
for users because of its history ability, which sh lacked. Other
than that, it was (and is) an inferior shell. Since bash and ksh
have more than adequate history AND retain and expand the superior
scripting of sh, anyone not hopelessly habituated to csh semantics
should use one of those.

Second problem: there are better places to post this. Nothing
about this has anything to do with SCO, and there are newsgroups
that deal specifically with shell programming.

Anyway: I'd use ksh or bash. Either have all the tools you need for this.

No doubt you'll get a dozen scripts in response to this, some of which
will probably even work, so I'm not going to add to that..

--
tony@aplawrence.com Unix/Linux/Mac OS X resources: http://aplawrence.com
Get paid for writing about tech: http://aplawrence.com/publish.html



Relevant Pages