#! /bin/sh ll=$(echo $LANG|sed -e 's/@.*//g' -e 's/_.*//g') ll_cc=$(echo $LANG|sed -e 's/@.*//g' -e 's/\..*//g' -e 's/_/-/g'|tr '[:upper:]' '[:lower:]') for x in sans serif monospace; do echo -n "$x[$ll]: " fc-match $x:lang=$ll done for x in sans serif monospace; do echo -n "$x[$ll_cc]: " fc-match $x:lang=$ll_cc done