bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in tr, version 4.5.3


From: Bob Proulx
Subject: Re: bug in tr, version 4.5.3
Date: Mon, 11 Aug 2003 20:30:01 -0600
User-agent: Mutt/1.3.28i

Bob Proulx wrote:
> Try this instead:
> 
>   echo fdhrnzvfu bffvsentr | tr '[a-z]' '[n-za-m]'

Oops.  I should have said:

  echo fdhrnzvfu bffvsentr | tr a-z n-za-m

The STRINGS are already character classes so they don't need
brackets.  And with no brackets no need to quote.

Also, for a full rot13 don't forget the capital letters!  :-)

  echo fdhrnzvfu bffvsentr | tr A-Za-z N-ZA-Mn-za-m

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]