---
name: "wnseven_m"
section: "3"
platform: "linux"
package: "wn"
version: "2.2.9-2"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/wnseven_m"
---

# wnseven\_m(3)

CGI program for searching files for sections for wn HTTP server

## NAME

wnseven\_m - CGI program for searching files for sections for wn HTTP server

## SYNOPSIS

**wnseven\_m** *separator\_pattern* *section\_pattern* *file* \[*file*\] *...*

## DESCRIPTION

**wnseven\_m** is a [**perl**(1)](/perl/1.md) CGI program that is part of the [**wn**(1)](/wn/1.md) HTTP server package. **wnseven\_m** searches *file* and produces a **\<ul\>** HTML list of anchors to sections of the *file* containing a match for the regular expression in the environment variable **QUERY\_STRING**. A new section is determined to begin when a line matching *separator\_pattern* is found.  The text of the anchor is taken from the first line of a  section matching *section\_pattern*.

**wnseven\_m** is intended as an Index Search Module of [**wn**(1)](/wn/1.md) (see **http:/doc/wn/module.html**). This requires that the **Search-Module** directive be set in the appropriate *index* file (see **http:/doc/wn/appendixB.html**). For example, for a mail format file *foo in directory* *dir*:

```
  Search-Module=/usr/lib/cgi-bin/wn/wnseven_m "^From " "^Subject:" foo
```

## SEE ALSO

[**wn**(1)](/wn/1.md), [**wn\_mkdigest**(1)](/wn_mkdigest/1.md), [**wn\_uncache**(1)](/wn_uncache/1.md), [**wndex**(1)](/wndex/1.md), [**wnindexmaker**(1)](/wnindexmaker/1.md), [**wnpnuts**(1)](/wnpnuts/1.md), [**wnauth**(3)](/wnauth/3.md), [**wncat**(3)](/wncat/3.md), [**wnhtmlify**(3)](/wnhtmlify/3.md), [**wnredir**(3)](/wnredir/3.md), [**wnsectsearch**(3)](/wnsectsearch/3.md), [**wn\_md5passwd**(8)](/wn_md5passwd/8.md), [**wn\_mkpasswd**(8)](/wn_mkpasswd/8.md), [**wnconfig**(8)](/wnconfig/8.md), [**wnd**(8)](/wnd/8.md), [**wnsd**(8)](/wnsd/8.md), [**wnupdatewww**(8)](/wnupdatewww/8.md), [**wnv2c**(8)](/wnv2c/8.md)\
 **http:/doc/wn/module.html**\
 **http:/doc/wn/appendixB.html**\
 **http:/doc/wn/appendixD.html**\
 **http:/doc/wn/manual.html**\
 **http://hopf.math.nwu.edu/**

## AUTHOR

**wn** is written by John Franks \<john@math.nwu.edu\>.  Modified by Jean Pierre LeJacq \<jplejacq@quoininc.com\> as part of packaging for the Debian GNU/Linux distribution. Manual page also added by Jean Pierre LeJacq.
