<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: just the option descriptors without all the man page garbage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210060#M685463</link>
    <description>&amp;gt;JRF: man command|col -b|awk '/NAME/,/DESCRIPTION/'&lt;BR /&gt;&lt;BR /&gt;And pipe it to rmnl(1) to remove blank lines.</description>
    <pubDate>Tue, 03 Jun 2008 21:13:47 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2008-06-03T21:13:47Z</dc:date>
    <item>
      <title>just the option descriptors without all the man page garbage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210056#M685459</link>
      <description>How can I show a very brief (less than one line) descriptor of a particular command and very brief (one line or less) descriptors of the various options.  Each man page for a particular command is several pages and I really could do without it.  Usage data would be good to have too but I don't need a book where a line will do.  Any thoughts on this?&lt;BR /&gt;&lt;BR /&gt;I wrote this question on experts exchange and they came up with a complicated command to parse the information I needed that I could alias for each system if need be. &lt;BR /&gt;&lt;BR /&gt;If there is a better approach, I would love to know about it.  Any help would be greatly appreciated.</description>
      <pubDate>Tue, 03 Jun 2008 19:41:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210056#M685459</guid>
      <dc:creator>rightbrain</dc:creator>
      <dc:date>2008-06-03T19:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: just the option descriptors without all the man page garbage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210057#M685460</link>
      <description>As far as I know, there is no easy way to do this.&lt;BR /&gt;&lt;BR /&gt;If you look at 'man man' there are very few options to the man command itself.</description>
      <pubDate>Tue, 03 Jun 2008 19:53:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210057#M685460</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-06-03T19:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: just the option descriptors without all the man page garbage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210058#M685461</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Well, this gives a summary (albeit without each option's description):&lt;BR /&gt;&lt;BR /&gt;# man command|col -b|awk '/NAME/,/DESCRIPTION/'&lt;BR /&gt;&lt;BR /&gt;...replace 'command' with whatever you want summarized.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 03 Jun 2008 20:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210058#M685461</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-03T20:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: just the option descriptors without all the man page garbage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210059#M685462</link>
      <description>&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Misc/woman-3.0/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Misc/woman-3.0/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I have not used it but it claims to come with "apropos" and "whatis" which is what you need.</description>
      <pubDate>Tue, 03 Jun 2008 20:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210059#M685462</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-06-03T20:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: just the option descriptors without all the man page garbage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210060#M685463</link>
      <description>&amp;gt;JRF: man command|col -b|awk '/NAME/,/DESCRIPTION/'&lt;BR /&gt;&lt;BR /&gt;And pipe it to rmnl(1) to remove blank lines.</description>
      <pubDate>Tue, 03 Jun 2008 21:13:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210060#M685463</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-03T21:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: just the option descriptors without all the man page garbage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210061#M685464</link>
      <description>&lt;!--!*#--&gt;&amp;gt;&amp;gt; I wrote this question on experts exchange and they came up with a complicated command to parse the information I needed that I could alias for each system if need be. &lt;BR /&gt;&lt;BR /&gt;Too bad you did not share the details.&lt;BR /&gt;&lt;BR /&gt;Parsing man output is not hard, but not trivial either due to its 'stuttering' trying to 'overstrike' the key words.&lt;BR /&gt;&lt;BR /&gt;For example, the line with ' SYNOPSIS looks like:&lt;BR /&gt;$  man awk| awk 'NR==12' | od -c&lt;BR /&gt;...  S  \b   S  \b   S  \b   S   Y  \b   Y  \b   Y  \b   Y   N&lt;BR /&gt;&lt;BR /&gt;So any matching looks ugly.&lt;BR /&gt;&lt;BR /&gt;Here is an AWK solution, which you probably should put in a script or alias of ease of use:&lt;BR /&gt;&lt;BR /&gt;$ COMMAND=awk&lt;BR /&gt;$ man $COMMAND 2&amp;gt;/dev/null | awk 'x {x=0;print $0} /S\bSY/ {x=1} /  -\b-/'&lt;BR /&gt;&lt;BR /&gt;      awk [-Ffs] [-v var=value] [program | -f progfile ...] [file ...]&lt;BR /&gt;           -F fs          Specify regular expression used to separate&lt;BR /&gt;           -f progfile    Specify an awk program file.  Up to 100 program&lt;BR /&gt;           -v var=value   Cause var=value assignment to occur before the&lt;BR /&gt;&lt;BR /&gt;Using perl:&lt;BR /&gt;&lt;BR /&gt;$ man $COMMAND 2&amp;gt;/dev/null | perl -ne '$p and print and $p=0; $p++ if /S.SY/; print if /^\s+-.-/'&lt;BR /&gt;&lt;BR /&gt;or perl hiding the IFfy parts...&lt;BR /&gt;&lt;BR /&gt;$ man tail 2&amp;gt;/dev/null | perl -ne '$p and print and $p=0; $p=/S.SY/;  /^\s+-.-/ and print'&lt;BR /&gt;&lt;BR /&gt;or perl picking up the command as argument for easy scripts / command line edit:&lt;BR /&gt;&lt;BR /&gt;perl -e '$c=shift; foreach (qx(man $c 2&amp;gt;/dev/null)){if ($p){$p=0;print} $p++ if /S.SY/;print if /^\s+-.-/}' &lt;BR /&gt;&lt;BR /&gt;so many ways...&lt;BR /&gt;&lt;BR /&gt;:-)&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Jun 2008 03:04:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210061#M685464</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-06-04T03:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: just the option descriptors without all the man page garbage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210062#M685465</link>
      <description>&amp;gt;Hein: but not trivial either due to its 'stuttering' trying to 'overstrike' the key words.&lt;BR /&gt;&lt;BR /&gt;As shown in JRF's fragment, "col -b" removes that stuff.</description>
      <pubDate>Wed, 04 Jun 2008 03:21:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/just-the-option-descriptors-without-all-the-man-page-garbage/m-p/4210062#M685465</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-06-04T03:21:34Z</dc:date>
    </item>
  </channel>
</rss>

