#!/bin/sh chars=$(cat ../10.txt | fold -w1 | sort | uniq) for c in $chars; do convert -background none -fill red -font /opt/local/fonts/lyshie/TW-Kai-98_1.ttf -pointsize 64 label:"$c" "$c.png" done