rwxrob-dot/scripts/rot13

14 lines
195 B
Plaintext
Raw Normal View History

2022-02-09 07:29:05 +00:00
#!/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 "$*"