| 1 |
.\" Copyright, the authors of the Linux man-pages project |
| 2 |
.\" |
| 3 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 4 |
.\" |
| 5 |
.TH mansect 1 2026-01-30 "Linux man-pages 6.18" |
| 6 |
.SH NAME |
| 7 |
mansect |
| 8 |
\- |
| 9 |
print the source code of sections of manual pages |
| 10 |
.SH SYNOPSIS |
| 11 |
.SY mansect |
| 12 |
.I section |
| 13 |
.RI [ file \~.\|.\|.] |
| 14 |
.YS |
| 15 |
.SH DESCRIPTION |
| 16 |
The |
| 17 |
.B mansect |
| 18 |
command prints the source code of the |
| 19 |
.I section |
| 20 |
of the given manual-page files. |
| 21 |
.P |
| 22 |
The |
| 23 |
.B TH |
| 24 |
line is unconditionally printed. |
| 25 |
.P |
| 26 |
The output of this program is suitable for piping to the |
| 27 |
.BR groff (1) |
| 28 |
pipeline. |
| 29 |
.SH PARAMETERS |
| 30 |
.TP |
| 31 |
.I section |
| 32 |
A PCRE2 regular expression. |
| 33 |
.TP |
| 34 |
.I file |
| 35 |
If no files are specified, |
| 36 |
the standard input is used. |
| 37 |
.SH EXAMPLES |
| 38 |
.EX |
| 39 |
.RB $\~ "man \-w strtol strtoul | xargs mansect \[aq]NAME|SEE ALSO\[aq]" ; |
| 40 |
\&.lf 1 /usr/local/man/man3/strtol.3 |
| 41 |
\&.TH strtol 3 2024-07-23 "Linux man-pages 6.9.1" |
| 42 |
\&.SH NAME |
| 43 |
strtol, strtoll, strtoq \- convert a string to a long integer |
| 44 |
\&.SH SEE ALSO |
| 45 |
\&.BR atof (3), |
| 46 |
\&.BR atoi (3), |
| 47 |
\&.BR atol (3), |
| 48 |
\&.BR strtod (3), |
| 49 |
\&.BR strtoimax (3), |
| 50 |
\&.BR strtoul (3) |
| 51 |
\&.lf 1 /usr/local/man/man3/strtoul.3 |
| 52 |
\&.TH strtoul 3 2024-07-23 "Linux man-pages 6.9.1" |
| 53 |
\&.SH NAME |
| 54 |
strtoul, strtoull, strtouq \- convert a string to an unsigned long integer |
| 55 |
\&.SH SEE ALSO |
| 56 |
\&.BR a64l (3), |
| 57 |
\&.BR atof (3), |
| 58 |
\&.BR atoi (3), |
| 59 |
\&.BR atol (3), |
| 60 |
\&.BR strtod (3), |
| 61 |
\&.BR strtol (3), |
| 62 |
\&.BR strtoumax (3) |
| 63 |
.EE |
| 64 |
.SH SEE ALSO |
| 65 |
.BR lexgrog (1), |
| 66 |
.BR groff (1), |
| 67 |
.BR pcre2grep (1), |
| 68 |
.BR mandb (8) |