=== duanedes1gn is now known as M0hi === M0hi is now known as Guest96191 === Guest96191 is now known as duanedesign === bregma_ is now known as bregma [14:16] hi, can i have 1 question about man pages? === jjesse_ is now known as jjesse [14:26] im good in this room, when i have questions about man pages? [14:33] hm? :) [14:34] help:D [14:48] is here anyone? [14:49] xXx8xXx; yup [14:49] oo thx :) [14:49] And 25 others, but I can't confirm they're all active [14:49] can i have questin about man page? [14:49] sup? [14:50] Well...if you ask I can see if I can answer it =) [14:50] man pages consist from more sections ( description, see also, history, bugs) [14:50] can i for example through groff generate only 1 from this section? [14:52] I don't follow your drift? [14:53] sry ma english is bad [14:54] man page: description, history, bugs, see also etc .. [14:54] i need only 1 section from all this section, for example scetion SEE ALSo [14:54] groff -Tascii -a -man [14:55] can i do this with groff? [14:55] I'm not an expert, but what happens when you try that? [14:56] yes, this generate full man page [14:56] but i nedd only 1 section [14:56] not full man page [15:01] Have you tried "man -a 'whatever' | groff -T"? [15:02] xXx8xXx, no groff will not do that [15:02] I'm not sure about | but with that pipe as it's called you direct the other program [15:03] must not only with groff [15:03] i can use other commands [15:03] can you show me some example with | ? [15:03] groff is just a runoff processor, it does not understand the semantics of the text [15:04] you could write a python script that would extract what you need from the groff -Tascii output [15:06] im programming my program in python:) [15:06] but see also can be in the end of man page [15:07] and also it possible that see also isnt in the end of man page [15:07] for example man page: [15:07] DESCRIPTION [15:07] SEE ALSO [15:07] the end [15:07] but can be: [15:07] DESCRIPTION [15:07] SEE ALSO [15:07] BUGS [15:07] HISTORY [15:07] the end [15:08] how can i do this in python when i wanna only see also section? [15:10] all I can suggest is reading through the text matching section headers, and when you see the one you want, grab all the text up to the next section header or end of file [15:10] section headers are documented in 'man man-pages' [15:12] thank you, but for example COLOPHON or HISTORY is not in man-pages [15:12] and i see this 2 headers in some man page [15:16] if you're parsing the raw groff input, you can rely on .SH as the section header directive, problem is then you have raw groff input as your text [15:17] yes, i parse text generated from groff [15:18] not source man page