Hello Marc,

I had some problems with converting case with 'tr' the way you have
done.

I had a tr [a-z] [A-Z]. When I execute

date +%A|tr [a-z] [A-Z]

it gives me XXXXX instead of the proper day in upper case. This happens
only when I use this inside a cron-job. From the command-line it works
fine.

Later, I changed the tr arguments to

tr [:lower:] [:upper:]

And, it started working in the cron-job without any garbled output.

Can someone figure out why it used to give that kind of output in the
cronjob at first ?

-Sanchet
--
Marc Mutz <[EMAIL PROTECTED]> wrote:
>Sajith Menon wrote:
>> 
><snip>
>> I have to install a application in RedHat Linux 6.2. THe setup files are

>> in a CD (burnt copy). All the files in the CD are in FULL CAPS, due to
>> which setup fails. Is there any scripts or any way to change all those
>> files from FULL CAPS to small.
><snip>
>
>For the record:
>
>find . -name '*[A-Z]*' | \
>while read; do
>  mv "$REPLY" "$(echo $REPLY | tr A-Z a-z)"
>done
>
>is not so fast as the perl version, but better to understand.
>
>-- 
>Marc Mutz <[EMAIL PROTECTED]>     http://EncryptionHOWTO.sourceforge.net/
>University of Bielefeld, Dep. of Mathematics / Dep. of Physics
>
>PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-newbie" in

>the body of a message to [EMAIL PROTECTED]
>Please read the FAQ at http://www.linux-learn.org/faqs
>


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to