mansect(1)
okay bestie, welcome to mansect(1) from the General Commands Manual โ it's the little tool that prints the source code of sections of manual pages, and it's lowkey iconic ๐
๐ NAME ๐
mansect โ print the source code of sections of manual pages โจ
โจ SYNOPSIS โจ
mansect section [file ...]
๐ DESCRIPTION ๐
okay so the mansect command prints the source code of the section of the given manual-page files. that's the whole main character energy of it ๐
the .TH line is unconditionally printed โ no ifs, no buts, no vibe check, it's always coming through ๐ซถ
and the output of this program is suitable for piping to the groff(1) pipeline โ literally built for that pipeline moment โจ
๐ PARAMETERS ๐
sectionโ a PCRE2 regular expression. yes bestie, a real PCRE2 regex, not just vibes ๐ฅfileโ if no files are specified, the standard input is used. that's the rule, no cap ๐
๐ฆ EXAMPLES ๐ฆ
here's the whole thing in action, bestie:
$ 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 ๐
go say hi to the whole friend group:
this page is from Linux man-pages 6.18, dated 2026-01-30, and it's mansect(1) โ love u, bye bestie ๐๐
๐ฆ where this page comes from
- alpine 3.24: man-pages 6.18-r0 ยท GPL-2.0-or-later
- nixos 26.05: man-pages 6.18
- ๐ the page's license: Linux-man-pages-copyleft
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms