[PATCH v2] src/bin/mansectf, man/man1/mansectf.1: Add program and manual page
From: Alejandro Colomar <alx@kernel.org>
Date: 2026-01-28 18:55:46
Subsystem:
the rest · Maintainer:
Linus Torvalds
Reported-by: Seth McDonald <redacted> Cc: Douglas McIlroy <redacted> Cc: "G. Branden Robinson" <redacted> Cc: наб <redacted> Signed-off-by: Alejandro Colomar <alx@kernel.org> --- man/man1/mansectf.1 | 56 +++++++++++++++++++++++++++++++++++++++++++++ src/bin/mansectf | 9 ++++++++ 2 files changed, 65 insertions(+) create mode 100644 man/man1/mansectf.1 create mode 100755 src/bin/mansectf
diff --git a/man/man1/mansectf.1 b/man/man1/mansectf.1
new file mode 100644
index 000000000..09f0a9fba
--- /dev/null
+++ b/man/man1/mansectf.1@@ -0,0 +1,56 @@ +.\" Copyright, the authors of the Linux man-pages project +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH mansectf 1 (date) "Linux man-pages (unreleased)" +.SH NAME +mansectf +\- +format specific sections of manual pages +.SH SYNOPSIS +.SY mansectf +.I section +.RI [ file \~.\|.\|.] +.YS +.SH DESCRIPTION +The +.B mansectf +command formats specific sections of manual-page files. +.SH PARAMETERS +See +.BR mansect (1). +.SH ENVIRONMENT +See +.BR man (1). +.SH EXAMPLES +.EX +.RB $\~ "man \-w strtol strtoul | xargs mansectf \[aq]NAME|SEE ALSO\[aq] | cat"; +strtol(3) Library Functions Manual strtol(3) +\& +NAME + strtol, strtoll, strtoq - convert a string to a long inte‐ + ger +\& +SEE ALSO + atof(3), atoi(3), atol(3), strtod(3), strtoimax(3), str‐ + toul(3) +\& +Linux man‐pages 6.16 2025‐12‐01 strtol(3) +─────────────────────────────────────────────────────────────── +strtoul(3) Library Functions Manual strtoul(3) +\& +NAME + strtoul, strtoull, strtouq - convert a string to an un‐ + signed long integer +\& +SEE ALSO + a64l(3), atof(3), atoi(3), atol(3), strtod(3), strtol(3), + strtoumax(3) +\& +Linux man‐pages 6.16 2025‐09‐21 strtoul(3) +.EE +.SH SEE ALSO +.BR lexgrog (1), +.BR groff (1), +.BR pcre2grep (1), +.BR mandb (8)
diff --git a/src/bin/mansectf b/src/bin/mansectf
new file mode 100755
index 000000000..a80f90b06
--- /dev/null
+++ b/src/bin/mansectf@@ -0,0 +1,9 @@ +#!/bin/bash +# +# Copyright, the authors of the Linux man-pages project +# SPDX-License-Identifier: GPL-3.0-or-later + +set -Eefuo pipefail; + +mansect "$@" \ +| man /dev/stdin;
Range-diff against v1: -: --------- > 1: c5da437ce src/bin/mansectf, man/man1/mansectf.1: Add program and manual page base-commit: 6754bd1a126ed1e9b7d9c2bc1d221681f5182bb3 -- 2.51.0