#!/bin/sh #> nr: format a man entry without page breaks # # if using nroff: # nroff -u0 -Tlp -man 2> /dev/null | # if using groff: # groff -Tascii -mandoc 2> /dev/null | # unfortunately, ".nh" is ignored even if you forcibly # prepend the macro package. # .hn: no hyphenation, but it doesn't work. setup=".pl 9999 .nh .hlm 0 .na .ll 78" ( echo "$setup"; cat ${1+"$@"} ) | tbl | groff -Tascii -mandoc 2> /dev/null | cat -s | exec less