rwxrob-dot/scripts/rot13
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

14 lines
195 B
Bash
Executable File

#!/usr/bin/env bash
_buffer() {
[[ -n "$1" ]] && return 1
"${FUNCNAME[1]}" "$(</dev/stdin)"
}
rot13(){
_buffer "$@" && return $?
tr '[A-Za-z]' '[N-ZA-Mn-za-m]' <<< "$*"
}
rot13 "$*"