#!/bin/sh find /usr/share/fonts -name '*.ttf' | while read ttf; do name=$(basename $ttf) echo ${name%.ttf} $ttf done > fonts.txt