[NTLUG:Discuss] removing text: fighting tr and regex

Fred James fredjame at fredjame.cnc.net
Thu Jul 6 11:23:32 CDT 2006


Richard Geoffrion wrote:

>Stuart Johnston wrote:
>  
>
> ... (omitted) ...
>
>So...lots of PERL examples and other PERLISMs...but what about TR?  
>Is/was 'tr' the wrong utility to trim this kind of text out of a 
>string?  Does 'tr' understand regex?
>
>  
>
Richard Geoffrion
'tr' generally finds specified character(s) and replaces it/them with 
specified character(s), although that may be an oversimplification (see 
man tr).
Regards
Fred James


NAME
       tr - translate or delete characters
 
SYNOPSIS
       tr [OPTION]... SET1 [SET2]
 
... (omitted) ...




More information about the Discuss mailing list