#!/bin/rc rfork e if(! ~ $#* 0 1 && ~ $1 -*){ echo 'usage: doc2ps file.doc' >[1=2] exit usage } file=$1 if(~ $#* 0){ file=/tmp/antiword.doc.$pid cat >$file } aux/antiword -i0 -p letter $file s=$status if(~ $#* 0) rm -f $file exit $status