How the hell does man not have an option to search by content?

LIke, I know *exactly* what the fuck I'm looking for, but I *don't* know what exact man page it's documented in – or if it's documented at all… @_@

@bonifartius Yeah, I thought of that. They're gzipped.

So I'd have to write some horrible looping abomination for temporary extraction of the sources piped through some groff parser and then sed to prepend the man pages title before each line and then pipe that into grep to do the actual search – an operation that would probably cost me like 3 hours and a veritable chunk of my left over sanity – all for something that should've been a fucking command line option like 30 years ago.

@phryk maybe there's zgrep available? you shouldn't have to run groff, aside a few ones most commands are on their own on line and grep should find the text anyway.

@bonifartius Mh, zgrep is a good hint, but doesn't support -r leading to shit like zgrep -i 'foo.*bar' `find . -name '*.gz'` and even that doesn't find all occurences, so I think the groff parser really isn't optional…

@bonifartius Not in the ports collection and I for sure am not going to start maintaining yet another port.

I'm doing that for sequoia, have a port for my poudriere prometheus exporter that I still need to hand in and then will maybe see about writing a port for openxray (S.T.A.L.K.E.R. source port) and then I'll probably never be persuaded into packaging anything ever again for the rest of my life. :F

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.