From 5a6ff970a9471d5b3127e681fe1755d4efdc0454 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 28 Feb 2023 09:58:54 +0100 Subject: Minor changes --- bin/.local/bin/ls-chars | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/.local/bin/ls-chars (limited to 'bin') 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" -- cgit v1.2.3