- Can a shell script do rot13 "encryption" ?
Can a shell script do rot13 "encryption" ?
Yes, like this:
#!/bin/sh exec tr 'a-zA-Z' 'n-za-mN-ZA-M'
Save it as /usr/local/bin/rot13 and do:
chmod a+x /usr/local/bin/rot13
Use it like this:
echo hello | rot13
Copyright © 2008-2021, dave. Code samples on Dave's Brain is licensed under the
Creative Commons Attribution 2.5 License.
other material, including English text has all rights reserved.