Created
July 8, 2013 16:21
-
-
Save hcoyote/5950262 to your computer and use it in GitHub Desktop.
I got your rot13() right here ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rot13 () | |
{ | |
if [ $# = 0 ]; then | |
tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]"; | |
else | |
tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]" < $1; | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment