mansect(1) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | SEE ALSO | COLOPHON

mansect(1)               General Commands Manual               mansect(1)

NAME         top

       mansect - print the source code of sections of manual pages

SYNOPSIS         top

       mansect section [file ...]

DESCRIPTION         top

       The mansect command prints the source code of the section of the
       given manual-page files.  If no files are specified, the standard
       input is used.

       section is a PCRE2 regular expression.

       The TH line is unconditionally printed.

       The output of this program is suitable for piping to the groff(1)
       pipeline.

EXAMPLES         top

       $ man -w strtol strtoul | xargs mansect 'NAME|SEE ALSO';
       .lf 1 /usr/local/man/man3/strtol.3
       .TH strtol 3 2024-07-23 "Linux man-pages 6.9.1"
       .SH NAME
       strtol, strtoll, strtoq - convert a string to a long integer
       .SH SEE ALSO
       .BR atof (3),
       .BR atoi (3),
       .BR atol (3),
       .BR strtod (3),
       .BR strtoimax (3),
       .BR strtoul (3)
       .lf 1 /usr/local/man/man3/strtoul.3
       .TH strtoul 3 2024-07-23 "Linux man-pages 6.9.1"
       .SH NAME
       strtoul, strtoull, strtouq - convert a string to an unsigned long integer
       .SH SEE ALSO
       .BR a64l (3),
       .BR atof (3),
       .BR atoi (3),
       .BR atol (3),
       .BR strtod (3),
       .BR strtol (3),
       .BR strtoumax (3)

SEE ALSO         top

       lexgrog(1), groff(1), pcre2grep(1), mandb(8)

COLOPHON         top

       This page is part of the man-pages (Linux kernel and C library
       user-space interface documentation) project.  Information about
       the project can be found at 
       ⟨https://www.kernel.org/doc/man-pages/⟩.  If you have a bug report
       for this manual page, see
       ⟨https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING⟩.
       This page was obtained from the tarball man-pages-6.10.tar.gz
       fetched from
       ⟨https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/⟩ on
       2025-02-02.  If you discover any rendering problems in this HTML
       version of the page, or you believe there is a better or more up-
       to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not
       part of the original manual page), send a mail to
       man-pages@man7.org

Linux man-pages 6.10            2024-11-25                     mansect(1)