To give context, I want to do something like an this: alias posix='man ?p', so that I could later type-in posix time and display time(1p), time(3p), etc..
Is this supported by man or will I have to hack something together with apropos?
To give context, I want to do something like an this: alias posix='man ?p', so that I could later type-in posix time and display time(1p), time(3p), etc..
Is this supported by man or will I have to hack something together with apropos?
try either
MANSECT="1,2,3" man -a time
man -s 1,2,3 -a time
as per man itself
-S list, -s list, --sections=list The given list is a colon- or comma-separated list of sections, used to determine which manual sections to search and in what order. This option overrides the $MANSECT environment variable. (The -s spelling is for compatibility with System V.)
you will have to enumerate section, no range or wildcard.