UNIX



1 : 2 # @(#) mmm v1.0 Nroff command line with mm macros Author: Russ Sage 2 nroff mm

4 if [ "$#" -eq 0 ] 5 then echo "mmm: wrong arg count" >&2 6 echo "usage: mmm file [...]" >&2 7 exit 1 8 fi

10 LIST="" 11 for ARG in $* 12 do 13 if [ ! -f $ARG ] 14 then echo "mmm: $ARG is not a regular file" >&2 15 else LIST="$LIST $ARG" 16 fi 17 done

19 nroff -r0O -mm $LIST