#!/bin/sh tmp=`mktemp` trap "rm -f $tmp" HUP PIPE INT QUIT TERM EXIT mutool convert -F text -o $tmp "$1" 2>/dev/null cat $tmp