bash ord() – get char index Edit Delete bash char character index ord ordinal sh LC_CTYPE=C printf '%d' "'$1"