#!/bin/bash #*****************************************# # Run Lilypond on a lot of files and save # # the terminal output in text files # #*****************************************# for LILYFILE in *.ly do STEM=$(basename "$LILYFILE" .ly) echo "running $LILYFILE..." lilypond --format=png "$LILYFILE" >& "$STEM".txt rm "$STEM".ps done grep failed *.txt