2 # minimalistic replacement for `run-mailcap --action=cat <file>`
4 if test "$#" != 1 ; then
5 echo "Usage: astextplain <file>" 1>&2
9 # XXX output encoding (UTF-8) hardcoded
12 antiword
-m UTF-8
"$1"
15 pdftotext
-layout "$1" -enc UTF-8
-
18 echo "E: unsupported filetype $1" 1>&2