file=$1
sed '/^$/d' $file > a
sed '/Print/d' a > b
sed s/"DISPLAY error:  no file open yet"/-99/ b > c
mv c $file
rm -rf a
rm -rf b
