Hi Jiri, Jiri B wrote on Tue, Dec 13, 2011 at 06:50:24PM -0500:
> I wanted to grep a pattern from a manpage and was > very surprised I do not get "normal" plain text. > > $ mandoc /usr/local/man/man1/context.1 | cat -ntve | sed -n '123,124p' > 123 -^H--^H-v^Hve^Her^Hrs^Hsi^Hio^Hon^Hn$ > 124 report installed context version$ You want col(1) -b, not cat(1) -v for that purpose. > karl.example.com (00:44:27) > karl(ttyp3) [/tmp] > $ mandoc /usr/local/man/man1/context.1 | grep version > version of the ConTeXt typesetting system, an extensive macro package > report installed context version On -current, you might also wish to try $ sudo mandocdb $ sudo ln /usr/bin/mandoc /usr/bin/apropos.m $ apropos.m any=-version > Is this expected behaviour? Yes. > I really don't understand much > 'ASCII Output' section of mandoc manpage. Parse error... Yours, Ingo

