1

I want to "encrypt" a .txt by replacing each letter with the letter six positions later. What I have right now is:

tr [:alpha:] ??? < myfile.txt

But I don't know what to put in ??? ...

Any help is appreciated, thanks.

1 Answers1

1

Try

tr '[a-z]' '[f-za-e]'

There's an explanation from the inverse question at How does tr '[a-z]' '[n-za-m]' work?

Chris Davies
  • 116,213
  • 16
  • 160
  • 287
Archemar
  • 31,554
  • This worked, thanks. And also thanks to @roaima whose linked answer helped me understand the question better. – Jiménez Oct 13 '19 at 16:14