- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Search keyword in "man" page
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:15 AM
06-09-2006 05:15 AM
how can I search a string within all the man pages for "swremove"?
Something like with "vi", you can use "/
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:17 AM
06-09-2006 05:17 AM
Re: Search keyword in "man" page
http://docs.hp.com/en/B2355-60103/index.html
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:17 AM
06-09-2006 05:17 AM
Re: Search keyword in "man" page
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:20 AM
06-09-2006 05:20 AM
Re: Search keyword in "man" page
http://yourserver.domain.com/cgi-bin/man2html
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:28 AM
06-09-2006 05:28 AM
Re: Search keyword in "man" page
But how can I use "vi-like search" in "man"? I tried to press "Esc",then "/", then
Thanks Pete, but what do you mean "catman"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:29 AM
06-09-2006 05:29 AM
Re: Search keyword in "man" page
If it doesn't work, then as root, you'll need to kick off the command "catman".
Let that run till it's over (it will take a really long time).
Then, you can run "man -k swremove"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:30 AM
06-09-2006 05:30 AM
Re: Search keyword in "man" page
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:33 AM
06-09-2006 05:33 AM
Re: Search keyword in "man" page
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:33 AM
06-09-2006 05:33 AM
Re: Search keyword in "man" page
In fact, I need to search a keyword within the manpage of "swremove", without going through all pages.
For example, I need to search for the option of "swremove": "enforce_dependencies", then I can go to those pages talking about "enforce_dependencies".
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:35 AM
06-09-2006 05:35 AM
Re: Search keyword in "man" page
at the ":" you can enter "/top" to search for the characters "top" in the output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:38 AM
06-09-2006 05:38 AM
Re: Search keyword in "man" page
http://docs.hp.com/en/B2355-60103/index.html
is not a complete reference, I couldn't find even "swremove" in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:42 AM
06-09-2006 05:42 AM
Solutionhttp://docs.hp.com/en/hpuxman_pages.html
here is the man page for 11.11:
http://docs.hp.com/en/B2355-90692/swremove.1M.html
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:44 AM
06-09-2006 05:44 AM
Re: Search keyword in "man" page
just seeing ur post, i found out the way.
--------------------------------
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.
but in man "forget that going to command mode" and remainings are same.
--------------------------------
or simply work like "more".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2006 05:46 AM
06-09-2006 05:46 AM
Re: Search keyword in "man" page
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.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2006 08:48 AM
06-10-2006 08:48 AM
Re: Search keyword in "man" page
On a new system, I'll start catman at the end of the day and then add something like this to cron:
# Update whatis (man -k) database
3 2 1,15 * * /usr/bin/catman -m
This runs the update on the 1st and 15th of each month. Then I just forget catman...
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.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2006 09:29 AM
06-10-2006 09:29 AM
Re: Search keyword in "man" page
I want to add something to Bills response:
Don't forget to set the MANPATH explicitly in your crontjob, because of the small environment of crontab. My example:
5 5 5,20 * * MANPATH=`cat /etc/MANPATH` catman -w
mfG Peter