diff options
Diffstat (limited to 'ord.sh')
-rw-r--r-- | ord.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -0,0 +1,6 @@ +if [ $# -ne 1 ] || [ ${#1} -ne 1 ]; then + printf 'usage: %s char\n' "$0" + exit 1 +fi + +printf '%d\n' "\"$1\"" |
![]() |
index : orchard | |
implementations of Python's chr() and ord() functions as POSIX sh scripts |
summaryrefslogtreecommitdiff |