<?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: Search keyword in &amp;quot;man&amp;quot; page in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803352#M266928</link>
    <description>Thanks Torsten, the link is great! &lt;BR /&gt;But how can I use "vi-like search" in "man"? I tried to press "Esc",then "/", then &lt;KEYWORD&gt;, it didn't work.&lt;BR /&gt;&lt;BR /&gt;Thanks Pete, but what do you mean "catman"?&lt;/KEYWORD&gt;</description>
    <pubDate>Fri, 09 Jun 2006 12:28:40 GMT</pubDate>
    <dc:creator>yyghp</dc:creator>
    <dc:date>2006-06-09T12:28:40Z</dc:date>
    <item>
      <title>Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803348#M266924</link>
      <description>When I use "man" to get help for the certain command, for example, "man swremove",&lt;BR /&gt;how can I search a string within all the man pages for "swremove"?&lt;BR /&gt;Something like with "vi", you can use "/&lt;KEYWORD&gt;" to search a specific string within the whole file.&lt;BR /&gt;Thanks!&lt;/KEYWORD&gt;</description>
      <pubDate>Fri, 09 Jun 2006 12:15:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803348#M266924</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2006-06-09T12:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803349#M266925</link>
      <description>Vi-like search will work, but there are html-pages of the man pages too on &lt;A href="http://docs.hp.com," target="_blank"&gt;http://docs.hp.com,&lt;/A&gt; e.g.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60103/index.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60103/index.html&lt;/A&gt;</description>
      <pubDate>Fri, 09 Jun 2006 12:17:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803349#M266925</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-06-09T12:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803350#M266926</link>
      <description>Start by doing a man on "catman".  That should get you going.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 09 Jun 2006 12:17:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803350#M266926</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-06-09T12:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803351#M266927</link>
      <description>... and on your server too per default:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://yourserver.domain.com/cgi-bin/man2html" target="_blank"&gt;http://yourserver.domain.com/cgi-bin/man2html&lt;/A&gt;</description>
      <pubDate>Fri, 09 Jun 2006 12:20:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803351#M266927</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-06-09T12:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803352#M266928</link>
      <description>Thanks Torsten, the link is great! &lt;BR /&gt;But how can I use "vi-like search" in "man"? I tried to press "Esc",then "/", then &lt;KEYWORD&gt;, it didn't work.&lt;BR /&gt;&lt;BR /&gt;Thanks Pete, but what do you mean "catman"?&lt;/KEYWORD&gt;</description>
      <pubDate>Fri, 09 Jun 2006 12:28:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803352#M266928</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2006-06-09T12:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803353#M266929</link>
      <description>First, try running "man -k swremove".&lt;BR /&gt;&lt;BR /&gt;If it doesn't work, then as root, you'll need to kick off the command "catman".&lt;BR /&gt;&lt;BR /&gt;Let that run till it's over (it will take a really long time).&lt;BR /&gt;&lt;BR /&gt;Then, you can run "man -k swremove"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Jun 2006 12:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803353#M266929</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2006-06-09T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803354#M266930</link>
      <description>I believe 'man' uses 'more' as its pager, so you're free to use any keystrokes that work in 'more'.  As with vi, you can do /&lt;KEYWORD&gt; for a forward search, ?&lt;KEYWORD&gt; for a backward search, n to forward-repeat, and N to reverse-repeat.&lt;BR /&gt;&lt;BR /&gt;PCS&lt;/KEYWORD&gt;&lt;/KEYWORD&gt;</description>
      <pubDate>Fri, 09 Jun 2006 12:30:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803354#M266930</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-09T12:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803355#M266931</link>
      <description>It works, your search string is anywhere on the page, but there is no highlighting. That's why I like to use a browser to read the man pages.</description>
      <pubDate>Fri, 09 Jun 2006 12:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803355#M266931</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-06-09T12:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803356#M266932</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;In fact, I need to search a keyword within the manpage of "swremove", without going through all pages.&lt;BR /&gt;For example, I need to search for the option of "swremove": "enforce_dependencies", then I can go to those pages talking about "enforce_dependencies".&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 09 Jun 2006 12:33:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803356#M266932</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2006-06-09T12:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803357#M266933</link>
      <description>What I usually do is set and export the variable PAGER=pg.  Man will then use "pg" for paging.&lt;BR /&gt;&lt;BR /&gt;at the ":" you can enter "/top" to search for the characters "top" in the output</description>
      <pubDate>Fri, 09 Jun 2006 12:35:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803357#M266933</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2006-06-09T12:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803358#M266934</link>
      <description>Thanks Torsten, but your link:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60103/index.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60103/index.html&lt;/A&gt;&lt;BR /&gt;is not a complete reference, I couldn't find even "swremove" in it.</description>
      <pubDate>Fri, 09 Jun 2006 12:38:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803358#M266934</guid>
      <dc:creator>yyghp</dc:creator>
      <dc:date>2006-06-09T12:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803359#M266935</link>
      <description>This is your start link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/hpuxman_pages.html" target="_blank"&gt;http://docs.hp.com/en/hpuxman_pages.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;here is the man page for 11.11:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90692/swremove.1M.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90692/swremove.1M.html&lt;/A&gt;</description>
      <pubDate>Fri, 09 Jun 2006 12:42:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803359#M266935</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-06-09T12:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803360#M266936</link>
      <description>&lt;!--!*#--&gt;hi yyghp, i too had the same doubt just two or three days back.&lt;BR /&gt;&lt;BR /&gt;just seeing ur post, i found out the way.&lt;BR /&gt;&lt;BR /&gt;--------------------------------&lt;BR /&gt;search in man pages is equal to vi. but u should understand that, in vi to go to the command mode we should press ":" and for searching /string we will give.&lt;BR /&gt;&lt;BR /&gt;but in man "forget that going to command mode" and remainings are same.&lt;BR /&gt;--------------------------------&lt;BR /&gt;or simply work like "more".</description>
      <pubDate>Fri, 09 Jun 2006 12:44:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803360#M266936</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-06-09T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803361#M266937</link>
      <description>Searching within a single man page is just like in vi:  enter the "/" character followed by the string you wish to search for - in your case "/enforce_dependencies".&lt;BR /&gt;&lt;BR /&gt;To search all the man pages for a reference you need to run catman to generate the searchable database.  This is described in the man pages for catman.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 09 Jun 2006 12:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803361#M266937</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-06-09T12:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803362#M266938</link>
      <description>Finding any string in the man page description is done with man -k. man -k does a simple string match so man -k sw will find a lot of matches. The database needs to be built with catman (which will take a while), biut then it must be maintained. As new patches and applications are added, the man pages need to checked for new and changed items. catman -m will merge changed and added one-liners to the whatis database (/usr/share/lib/whatis).&lt;BR /&gt; &lt;BR /&gt;On a new system, I'll start catman at the end of the day and then add something like this to cron:&lt;BR /&gt; &lt;BR /&gt;# Update  whatis (man -k) database&lt;BR /&gt;3 2 1,15 * * /usr/bin/catman -m&lt;BR /&gt; &lt;BR /&gt;This runs the update on the 1st and 15th of each month. Then I just forget catman...&lt;BR /&gt; &lt;BR /&gt;For searching inside man pages, the standard pager programs (pg, page, more) are just a bit too cryptic (and different). And of course, less is more. (there is a GNU program called less). So I wrote a script called viman (attached). Anytime I want a man page, I just type viman rather than man. It has the advantage of running a full vi with all the familiar commands like / and ? for searching, and G to jump down to the bottom. It also removes header lines and extra blank lines. When you're done reading, just type ZZ and the temp man page is gone.</description>
      <pubDate>Sat, 10 Jun 2006 15:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803362#M266938</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-06-10T15:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Search keyword in "man" page</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803363#M266939</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to add something to Bills response:&lt;BR /&gt;Don't forget to set the MANPATH explicitly in your crontjob, because of the small environment of crontab. My example:&lt;BR /&gt;5 5 5,20 * * MANPATH=`cat /etc/MANPATH` catman -w&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Sat, 10 Jun 2006 16:29:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-keyword-in-quot-man-quot-page/m-p/3803363#M266939</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-10T16:29:16Z</dc:date>
    </item>
  </channel>
</rss>

