is hard to do without once you've learned about it. Unfortunately, it's not available in some versions of UNIX. You can get the GNU version from the CD-ROM. But it's also relatively easy to emulate with and . Using those two utilities also lets you take advantage of the more-sophisticated formatting and flexibility that sed and nroff can give you. (If you're doing anything really fancy, like ,  you might need to clean up nroff 's output.)
Here's the script:
#!/bin/sh sed '1i\ .ll 72\ .na\ .hy 0\ .pl 1' $* | nroff
The reason this is so complicated is that,
makes some assumptions you need to change.
For example, it assumes an 11-inch page (66 lines), and will add
blank lines to a short file (or the end of a long file).
The quick-and-dirty workaround to this is to manually put the
(page length 1 line) at the top of the text you want to
also tends to justify lines; you want to turn
this off with the
A fancier script would take a -nn line-length option and turn it into a .ll request for nroff , etc.