#!/bin/sh FILES=`ls *.e* *.o*` for a in $FILES; do if ! [ -s $a ]; then /bin/rm $a echo $a [removed] fi done