I would like to print the 'Parameter Expansion' section of the Bash man page, formatted through groff then sent to the printer.
I tried running
man -t bash > bash.troff, with the intention of editing the troff file by hand, editing out the parts that I didn't need. This produced a PostScript file instead, already paginated, which defeats the purpose. In a sense, there are several different questions here:
- Is it possible to get part of a man page using the man command itself (I've skimmed
man man, and I don't think that there is).
- If it possible to export the output from
manin a way where it is easy to extract a section (preferably in an automated fashion). This is what I was trying to do with
- Is there a different way of extracting the same information, e.g. through
info, where I can still get the output pretty printed.