> > >[EMAIL PROTECTED] wrote: > >>>Here are unexpected outputs >>>echo EFG|/usr/xpg6/bin/tr '[A-Z]' '[a-z]' >>>FGH >>>echo EFG|/usr/xpg4/bin/tr '[A-Z]' '[a-z]' >>>FGH >>>Th >>>correct output >>>echo EFG|/usr/bin/tr '[A-Z]' '[a-z]' >>>efg >>>I only see this issue on SPARC solaris. both 06/06 11/06. The x86 one seems >>>to be fine. >>> >>> >> >> >>You need to use [:upper:] [:lower:] >> >> > >Hi Casper, > I don't think that's the solution for this issue. >echo EFG|/usr/xpg6/bin/tr '[EFG]' '[ach]'
You tried this? $ echo EFG|/usr/xpg6/bin/tr [:upper:] [:lower:] efg The problem with constructs like [A-Z] [a-z] is that they assume that there's the same number of upper and lower case characters. Casper _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org