#!/bin/bash for range in $(fc-query --format='%{charset}\n' "$1"); do for n in $(seq "0x${range%-*}" "0x${range#*-}"); do printf "
%04x&#x%x;
" "$n" "$n" done done