I was fighting less for hours, never thought of paging with vim. Thank you!
Thanks for the ideas!
I suggest you the following updates:
hex() { printf '0x%x ' "$@"; echo; }
chr() { printf "$(printf '\\%03o' "$@")\n"; }
ord() {
printf '%s' "$@" | sed -r 's/./&\n/g' | while IFS= read -r c
do printf '%d ' "'$c"
done
echo
}
ordx() { hex $(ord "$@"); }
Nice. So you adjusted them to support strings rather than single chars. At first glance I can't improve on your implementation. I'll have a look at incorporating them. thanks!