DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th September 2019
beavers beavers is offline
Shell Scout
 
Join Date: Nov 2017
Posts: 85
Default apropos(1) behavior

Is there a way to get apropos(1) to search the full text of man pages? For instance, running `apropos dkim` returns nothing, but smtpd.conf(5) definitely references 'dkimproxy'.
Reply With Quote
  #2   (View Single Post)  
Old 18th September 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I think you'd need to consider enhancing makewhatis(1), as that's the indexer.
Reply With Quote
  #3   (View Single Post)  
Old 18th September 2019
beavers beavers is offline
Shell Scout
 
Join Date: Nov 2017
Posts: 85
Default

Heh heh, "patches welcome."

While I'm learning to program, using a search engine will hold me over.
Reply With Quote
  #4   (View Single Post)  
Old 18th September 2019
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 305
Default

Am I wrong if I just

Code:
grep -r something /usr/share/man/
And add whatever other man directories that might be needed.
Reply With Quote
  #5   (View Single Post)  
Old 18th September 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

I think you mean grep -R. See grep(1).
Reply With Quote
  #6   (View Single Post)  
Old 18th September 2019
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 305
Default

So I guess I was wrong.

-r still works and is what I have always used. Probably finger memory carried over from Linux.

Same for cp -r/-R
Reply With Quote
  #7   (View Single Post)  
Old 18th September 2019
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default

Code:
man -k any=dkim
Reply With Quote
  #8   (View Single Post)  
Old 19th September 2019
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 305
Default

Yes. There's the winner. I will promptly forget that again and go back to grep -r. Lowercase.

Reply With Quote
  #9   (View Single Post)  
Old 19th September 2019
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default

You could always set an easy to remember alias in your profile.
Reply With Quote
Old 22nd September 2019
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 305
Default

I already forgot. I just had to come back here and look up the command.
Reply With Quote
Old 23rd September 2019
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default

Speaking of forgetting, forget what I wrote about aliases. It won't work with a command like this.

Instead, you can put sth. like this in your profile:

Code:
ms() {
        man -k any=$1;
}
then you can type
Code:
ms dkim
in the shell. Change 'ms' to whatever suits your needs or doesn't escape your memory. For instance sth. like 'mansearch' to give you an idea.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
my monitor(with no X) happens to deconnect ...a means to "monitor" its behavior ? spermwhale_warrior NetBSD General 2 1st September 2014 01:14 PM
strange behavior of PF majkelos OpenBSD Security 2 23rd October 2011 06:23 PM
Terminal display behavior 18Googol2 FreeBSD General 8 26th September 2008 02:05 PM
Strange network behavior Weaseal Off-Topic 4 27th May 2008 05:34 PM


All times are GMT. The time now is 07:13 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick