Re: How to search for "hostap" in man pages.
Hi Luke, Luke A. Call wrote on Sat, Jun 16, 2018 at 05:34:45PM -0600: > I think "man -K" would work on gnu/linux, The man(1) implementation used on many (but not all) Linux systems, man-db, does have a -K option since 2009. But what it does is just linearily search through the full text of all manual page files in question, without using any kind of a database - even though it is called man-db. The older man(1) implementation used by some other Linux systems has it, too, since man-1.5e, which was released between 1993 and 1998; that's probably where this option first appeared. It is also available on Solaris 11. I do not consider that option useful. On the one hand, it is so expensive that i wouldn't recommend using it, and even the man-db manual page warns about the seriously bad performance. I don't want options in mandoc that aren't really usable. On the other hand, if you feel like you absolutely must do a full text search across manual pages, you can already do that with grep(1), as you mentioned. So it isn't really needed as an option to mandoc. Actually, i occasionally, but rarely, use grep(1) myself on manual page, but almost exclusively when trying to find pages containing words that ought to be marked up, but where the markup is missing. That's more of a manual tree maintainer job than an end-user job. So i do not intend to implement -K, and would probably even reject patches implementing it, calling them featuritis = bloating the user interface for very little profit, if any. Yours, Ingo
Re: How to search for "hostap" in man pages.
On Sat, 16 Jun 2018 16:57:08 -0700 Andrew Hewus Fresh wrote: [...] > $ apropos any=Hostap [...] Thanks! This does the job indeed. Karel
Re: How to search for "hostap" in man pages.
Hi, Karel Gardas wrote on Sat, Jun 16, 2018 at 10:39:51PM +0200: > was looking for "hostap" or "Host AP" using man -k and apropos, > but this somehow does not return expected results: > > $ man -k hostap > hostapd(8) - Host Access Point daemon > hostapd.conf(5) - configuration file for the Host Access Point daemon man -k any=hostap searches in *any* marked up content. Read apropos(1) for details. You cannot search in content that is not marked up in any way, though. Arguably, the word "hostap" ought to be marked up in pages like ral(4) with .Cm; unfortunately, right now, it is not. Sorry if i'm somewhat slow at answering right now, i'm still almost offline for a week. Yours, Ingo
Re: How to search for "hostap" in man pages.
On Sat, Jun 16, 2018 at 10:39:51PM +0200, Karel Gardas wrote: > > Hello, > > was looking for "hostap" or "Host AP" using man -k and apropos, but this > somehow does not return expected results: An apropos(1) term lets you specify searching different "Macro Keys", including the "any" key that can be used to match any available. Quoting the manpage: By default, apropos searches [...] case-insensitive substring matching (the = operator) over manual names and descriptions (the Nm and Nd macro keys). You can search any of the macro keys that makewhatis indexes however: https://man.openbsd.org/apropos#Macro_Keys Such as the special "any" key. $ apropos any=Hostap hostapd(8) - Host Access Point daemon hostapd.conf(5) - configuration file for the Host Access Point daemon acx(4) - TI ACX100/ACX111 IEEE 802.11a/b/g wireless network device ath(4) - Atheros IEEE 802.11a/b/g wireless network device with GPIO ifmedia(4) - network interface media settings pgt(4) - Conexant/Intersil Prism GT Full-MAC IEEE 802.11a/b/g wireless network device ral(4) - Ralink Technology/MediaTek IEEE 802.11a/b/g/n wireless network device rtw(4) - Realtek RTL8180L IEEE 802.11b wireless network device rum(4) - Ralink Technology/MediaTek USB IEEE 802.11a/b/g wireless network device ural(4) - Ralink Technology/MediaTek USB IEEE 802.11b/g wireless network device ifconfig(8) - configure network interface parameters -- andrew - http://afresh1.com Instructions are just another man's opinion of how to do something. -- Weldboy #DPWisdom
Re: How to search for "hostap" in man pages.
ps: I think apropos/man -k only search the header, not the entire manual page. On 06-16 17:34, Luke A. Call wrote: > I think "man -K" would work on gnu/linux, but on OpenBSD you might have to: > cd /usr/share/man > or > cd /usr/local/man > and > grep -ir hostap *|less > > On 06-16 22:39, Karel Gardas wrote: > > was looking for "hostap" or "Host AP" using man -k and apropos, but this > > somehow does not return expected results: > > > > $ man -k hostap > > hostapd(8) - Host Access Point daemon > > hostapd.conf(5) - configuration file for the Host Access Point daemon > > > > but: > > $ man ral|grep hostap > >mediaopt hostap > > hostname.if(5), hostapd(8), ifconfig(8)
Re: How to search for "hostap" in man pages.
On 17/06/18 09:34, Luke A. Call wrote: > Maybe someone else knows a better way though. Maybe lowercase 'k'? > sjl-router$ man -k hostap > hostapd(8) - Host Access Point daemon > hostapd.conf(5) - configuration file for the Host Access Point daemon > sjl-router$ uname -a > OpenBSD sjl-router.redhatters.home 6.3 GENERIC#3 amd64-- Stuart Longland (aka Redhatter, VK4MSL) I haven't lost my mind... ...it's backed up on a tape somewhere.
Re: How to search for "hostap" in man pages.
I think "man -K" would work on gnu/linux, but on OpenBSD you might have to: cd /usr/share/man or cd /usr/local/man and grep -ir hostap *|less . Maybe someone else knows a better way though. On 06-16 22:39, Karel Gardas wrote: > > Hello, > > was looking for "hostap" or "Host AP" using man -k and apropos, but this > somehow does not return expected results: > > $ man -k hostap > hostapd(8) - Host Access Point daemon > hostapd.conf(5) - configuration file for the Host Access Point daemon > > but: > > $ man ral|grep hostap >mediaopt hostap > hostname.if(5), hostapd(8), ifconfig(8) > > $ man athn|grep hostap >mediaopt hostap > > $ man ath|grep hostap >mediaopt hostap > hostname.if(5), gpioctl(8), hostapd(8), ifconfig(8) > > > am I missing something or mistakenly expected man -k should return those too? > > Thanks! > Karel > PS: on -current with following dmesg: > > OpenBSD 6.3-current (GENERIC.MP) #14: Thu Jun 14 23:55:47 MDT 2018 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 8461684736 (8069MB) > avail mem = 8127451136 (7750MB) > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (74 entries) > bios0: vendor LENOVO version "6FET61WW (2.07 )" date 02/13/2009 > bios0: LENOVO 224362G > acpi0 at bios0: rev 2 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA > DMAR SSDT SSDT SSDT > acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) > EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) EHC1(S3) > HDEF(S4) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpiec0 at acpi0 > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.35 MHz > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN > cpu0: 3MB 64b/line 8-way L2 cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges > cpu0: apic clock running at 265MHz > cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2.1.3, IBE > cpu1 at mainbus0: apid 1 (application processor) > cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN > cpu1: 3MB 64b/line 8-way L2 cache > cpu1: smt 0, core 1, package 0 > ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins > , remapped to apid 1 > acpimcfg0 at acpi0 addr 0xe000, bus 0-63 > acpihpet0 at acpi0: 14318179 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus -1 (AGP_) > acpiprt2 at acpi0: bus 2 (EXP0) > acpiprt3 at acpi0: bus 3 (EXP1) > acpiprt4 at acpi0: bus -1 (EXP2) > acpiprt5 at acpi0: bus 5 (EXP3) > acpiprt6 at acpi0: bus 13 (EXP4) > acpiprt7 at acpi0: bus 21 (PCI1) > acpicpu0 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), > C1(1000@1 mwait.1), PSS > acpicpu1 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), > C1(1000@1 mwait.1), PSS > acpipwrres0 at acpi0: PUBS, resource for USB0, USB3, USB5, EHC0, EHC1 > acpitz0 at acpi0: critical temperature is 127 degC > acpitz1 at acpi0: critical temperature is 100 degC > acpibtn0 at acpi0: LID_ > acpibtn1 at acpi0: SLPB > acpicmos0 at acpi0 > "IBM0057" at acpi0 not configured > "INTC0102" at acpi0 not configured > acpibat0 at acpi0: BAT0 model "42T4619" serial 732 type LION oem "SANYO" > acpiac0 at acpi0: AC unit online > acpithinkpad0 at acpi0 > "PNP0C14" at acpi0 not configured > acpidock0 at acpi0: GDCK not docked (0) > acpivideo0 at acpi0: VID_ > acpivout0 at acpivideo0: LCD0 > acpivideo1 at acpi0: VID_ > cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07 > inteldrm0 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07 > drm0 at inteldrm0 > intagp0 at inteldrm0 > agp0 at intagp0: aperture at 0xd000, size 0x1000 > inteldrm0: msi > inteldrm0: 1280x800, 32bpp > wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation) > wsdisplay0: screen 1-5 added (std, vt100 emulation) > "Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured > "Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured > em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: msi, address > 00:22:68:0a:32:65 > uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 20 > uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 21 > uhci2 at pci0 dev 26 functio
How to search for "hostap" in man pages.
Hello, was looking for "hostap" or "Host AP" using man -k and apropos, but this somehow does not return expected results: $ man -k hostap hostapd(8) - Host Access Point daemon hostapd.conf(5) - configuration file for the Host Access Point daemon but: $ man ral|grep hostap mediaopt hostap hostname.if(5), hostapd(8), ifconfig(8) $ man athn|grep hostap mediaopt hostap $ man ath|grep hostap mediaopt hostap hostname.if(5), gpioctl(8), hostapd(8), ifconfig(8) am I missing something or mistakenly expected man -k should return those too? Thanks! Karel PS: on -current with following dmesg: OpenBSD 6.3-current (GENERIC.MP) #14: Thu Jun 14 23:55:47 MDT 2018 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8461684736 (8069MB) avail mem = 8127451136 (7750MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (74 entries) bios0: vendor LENOVO version "6FET61WW (2.07 )" date 02/13/2009 bios0: LENOVO 224362G acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA DMAR SSDT SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.35 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN cpu0: 3MB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges cpu0: apic clock running at 265MHz cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2.1.3, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz, 2394.00 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR,MELTDOWN cpu1: 3MB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins , remapped to apid 1 acpimcfg0 at acpi0 addr 0xe000, bus 0-63 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus -1 (EXP2) acpiprt5 at acpi0: bus 5 (EXP3) acpiprt6 at acpi0: bus 13 (EXP4) acpiprt7 at acpi0: bus 21 (PCI1) acpicpu0 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS acpicpu1 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1 mwait.1@0x10), C1(1000@1 mwait.1), PSS acpipwrres0 at acpi0: PUBS, resource for USB0, USB3, USB5, EHC0, EHC1 acpitz0 at acpi0: critical temperature is 127 degC acpitz1 at acpi0: critical temperature is 100 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpicmos0 at acpi0 "IBM0057" at acpi0 not configured "INTC0102" at acpi0 not configured acpibat0 at acpi0: BAT0 model "42T4619" serial 732 type LION oem "SANYO" acpiac0 at acpi0: AC unit online acpithinkpad0 at acpi0 "PNP0C14" at acpi0 not configured acpidock0 at acpi0: GDCK not docked (0) acpivideo0 at acpi0: VID_ acpivout0 at acpivideo0: LCD0 acpivideo1 at acpi0: VID_ cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2401, 2400, 1600, 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07 inteldrm0 at pci0 dev 2 function 0 "Intel GM45 Video" rev 0x07 drm0 at inteldrm0 intagp0 at inteldrm0 agp0 at intagp0: aperture at 0xd000, size 0x1000 inteldrm0: msi inteldrm0: 1280x800, 32bpp wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation) wsdisplay0: screen 1-5 added (std, vt100 emulation) "Intel GM45 Video" rev 0x07 at pci0 dev 2 function 1 not configured "Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: msi, address 00:22:68:0a:32:65 uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int 20 uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int 21 uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 int 22 ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 1 int 23 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03: msi azalia0: codecs: Conexant CX20561 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: msi pci1 at ppb0 bus 2 ppb1 at pci0 dev