On 14 March 2013 23:01, Roland Mainz <[email protected]> wrote:
> On Thu, Mar 14, 2013 at 2:19 PM, Cedric Blancher
> <[email protected]> wrote:
>> How do I match accented e (i.e. é) using an equivalence class in AST tr?
>>
>> Doing that in sed is easy:
>> ~/bin/sed -r "s/[[=e=]]/X/g" <<<"8é8" ; printf "\n"
>> 8X8
>>
>> But in tr I am not able to get it working:
>> ksh -c 'builtin tr ; tr -Cd "[=e=]" <<<"1e2é3" ; print'
>> e
>>
>> AFAIK this should print "eé".
>>
>> I used:
>>   version         tr (AT&T Research) 2012-11-12
>>   version         sed (AT&T Research) 2012-03-28
>
> Erm... wIthout digging around... does AST "tr" support the POSIX
> equivalence class syntax yet (Glenn... ping!) ? My first guess would
> be to try another platform like Solaris to see if the issue is
> libc-related...

Glenn, does AST tr support the [=e=] syntax?
Werner, does GNU tr support the [=e=] syntax?

Ced
-- 
Cedric Blancher <[email protected]>
Institute Pasteur
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to