tr A-Z a-z
Christoph P. Kukulies
kuku at kukulies.org
Sun May 9 10:24:45 PDT 2004
On Sat, May 08, 2004 at 04:20:21PM -0500, Jose Lima wrote:
> I use:
> echo "$Z" | tr '[a-z' '[A-Z]'
This would be a lower case to upper case and would expose the same
problem. And a closing bracket is missing also. Don't know what the
$Z should mean in your example.
In my example echo Z served as feeding a 'Z' to the tr pipe.
But the problem is solved. As Kris suspected and someone else explained
it is a locale issue.
One should indeed use :lower: :upper: keywords. Or set the locale
accordingly for old shell scripts to work correctly.
Chris Christoph P. U. Kukulies kuku_at_kukulies.org
More information about the freebsd-questions