#!/bin/bash for a in *.sfd; do fontfile=$(basename $a .sfd) fontforge -lang=ff -c 'Open($1); Generate($2)' ${fontfile}.sfd ${fontfile}.ttf done