1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-13 20:29:02 -08:00
rc/sh/rot13
Connor Olding d5f3f14d72 merge compatibility lines
RIP meaningful last-modified dates
2024-03-26 15:08:14 -07:00

19 lines
432 B
Bash
Executable file

#!/usr/bin/env sh
# YES_ZSH YES_BASH YES_DASH YES_ASH
# works with busybox tr.
rot13() { ### @-
### rot13 with numbers rotated as well.
###
### ```
### $ rot13 <<< abc123
### nop678
### ```
###
### **NOTE:** there also exists rot13(1) programs provided by
### the *bsdgames* and *hxtools* packages that i don't use.
tr -- A-Za-z0-9 N-ZA-Mn-za-m5-90-4
}
[ -n "${preload+-}" ] || rot13 "$@"