In a shell script (lyxpreview2ppm_new.sh actually, so not /totally/ off topic ;-)
BAIL_OUT () { # Remove everything except the original .tex file. FILES=`ls ${BASE}* | sed -e "/${BASE}.tex/d"` rm -f ${FILES} exit 1 } Is there a more elegant way to invoke rm and remove these files? Angus