6 if test "x$1" = "x-h" ; then
8 1>&2 echo " $0 [filename]"
9 1>&2 echo "Read words from input, treating all whitespace like,"
10 1>&2 echo "and write exactly N words per line on output."
12 1>&2 echo " -n [N] specify N (default: 1)"
13 1>&2 echo " filename = '-' or '' ==> read from standard input"
21 while test -n "$*" ; do
24 -n) wordmax=$1 ; shift
26 *) files="$files $this"
33 for (ii = 1; ii <=NF; ii++) {
36 if (words >= wordmax) {
43 }' wordmax=$wordmax $files