[SLL] Curious

Jeremy C. Reed reed at reedmedia.net
Sat Mar 7 06:21:12 PST 2009


On Sat, 7 Mar 2009, Paul Franz wrote:

> > echo 'EhZ[h ^jjf0%%h[[Zc[Z_W$d[j%Xeeai%ZW[ced#]dk#f[d]k_d%' | \
> >   tr            '#-~'            '\-.-{'
> 
> echo '@kij medZ[h_d] ^em "R#$#q" mehai5' | tr '#-~' '\-.-{'
> 
> You've got me puzzled. I'd appreciate a little verbosity. It would seem 
> to me that ROT13 equivalence could be achieved too.

The \- means literal - so not a range. Then the real range is period 
through left brace.

echo V znqr n fpevcg gb perngr guvf sbe EBG13 gbb | \
 tr "VBEGnpqrsuvzbcefg" "IORTacdefhimoprst"




More information about the linux-list mailing list