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 rot
Alwin Leerling wrote:
> I think I might have stumbled on a bug in tr:
Thank you very much for the report. But I don't think this is a bug.
I think you are using tr incorrectly.
> Command in bash shell:
> echo fdhrnzvfu bffvsentr | tr [a-z] [n-z][a-m]
>
> Expected output:
> squeamish
I think I might have stumbled on a bug in tr:
Command in bash shell:
echo fdhrnzvfu bffvsentr | tr [a-z] [n-z][a-m]
Expected output:
squeamish ossifrage
Output from command
squc]kgsf ossigdr]ec
OS: RH 9
bash: GNU bash 2.05b.0(1)-release
tr: 4.5.3
Best Regards
Alwin Le