Skip to content

Instantly share code, notes, and snippets.

@uttamg911
Created February 20, 2014 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uttamg911/9125443 to your computer and use it in GitHub Desktop.
Save uttamg911/9125443 to your computer and use it in GitHub Desktop.
This unix script translates the letters of a word to numbers a-z or A-Z to 1-26
tr 'A-Z' 'a-z'| tr 'abcdefghi' '123456789' | tr 'j' '10' | tr 'k' '11' | tr 'l' '12' | tr 'm' '13' | tr 'n' '14' | tr 'o' '15' | tr 'p' '16' | tr 'q' '17' | tr 'r' '18' | tr 's' '19' | tr 't' '20' | tr 'u' '21' | tr 'v' '22' | tr 'w' '23' | tr 'x' '24' | tr 'y' '25' | tr 'z' '26'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment