diff options
Diffstat (limited to 'bin/.local')
-rwxr-xr-x | bin/.local/bin/ls-chars | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/.local/bin/ls-chars b/bin/.local/bin/ls-chars new file mode 100755 index 0000000..ec05af2 --- /dev/null +++ b/bin/.local/bin/ls-chars @@ -0,0 +1,11 @@ +#!/bin/bash +for range in $(fc-match --format='%{charset}\n' "$1"); do + for n in $(seq "0x${range%-*}" "0x${range#*-}"); do + printf "%04x\n" "$n" + done +done | while read -r n_hex; do + count=$((count + 1)) + printf "%-5s\U$n_hex\t" "$n_hex" + [ $((count % 10)) = 0 ] && printf "\n" +done +printf "\n" |