The best way that I have found is to use the following

VARIABLE=`echo $VARIABLE|dd conv=lcase 2>/dev/null`

Do a man on dd to see the other useful goodies.

The 2>/dev/null is optional, but does gives a cleaner output.

Regards
Enrico

On Mon, 12 Jun 2000, Bret Hughes wrote:

> SoloCDM wrote:
> 
> > What commands convert casing to upper, lower, and proper (proper: as
> > in Virginia)?
> >
> > Note: Detailed Document(s) and Sample(s) are more than welcome.
> >       When you reply to this message, please include
> >       the mailing list and my address.
> >
> > *********************************************************************
> > Signed,
> > SoloCDM
> >
> > --
> > To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> > as the Subject.
> 
> tr will translate from on to the other.  take a look at man tr.  Also a
> thread awhile back that mentioned this.  some thing like cat file |tr
> [a-z] [A-Z]>newfile will probably come close but this is a guess.
> 
> For the Title Case Situation you will probably have to get tricky.
> 
> Bret
> 
> 
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
> 


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to