SMAN

Sman is the Searcher for Man pages.
Download

SMAN Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Josh Rabinowitz
  • Publisher web site:
  • http://search.cpan.org/~joshr/Sman-1.01/Sman/Man/Convert.pm

SMAN Tags


SMAN Description

Sman is the Searcher for Man pages. Sman is the Searcher for Man pages. Based on the example of the same name in Josh Rabinowitz's article "How To Index Anything" in the July, 2003 issue of Linux Journal (http://www.linuxjournal.com/article.php?sid=6652), sman is an enhanced version of 'apropos' and 'man -k'. Sman project adds several key abilities over its predecessors:· Supports complex natural language text searches such as "(linux and kernel) or (mach and microkernel)"· Shows results in a ranked order, and optionally an extract (using -e) of the manpage showing the searched text highlighted· Allows for searches by manpage section, title, body, or filename (use 'metaname=searchword')· Indexes the complete contents of the man page, not just the title and description· Uses a prebuilt index to perform fast searches· Performs 'stemming' so that a search for "searches" will match a document with the word "searching"Requirements:· Perl 5.005· SWISH-E 2.4 or above.Installation: perl Makefile.PL make make test make installUsage:Searching the man page index with sman: The sman command is fairly simple. As its help output says: Usage: sman searchwords Ranked freetext searches on manpages. Options: --max=#: limit number of results, default 20 --number: show the number of each hit --repeats: show repeat manpages --begin=#: start showing hits at number N --rank: show the rank of each hit --file: show the source man file for each hit --extract: show extraction of manpage for each hit --config=my-sman.conf: a config file (specs an index file) --index=index: specify an index (overrides config) --quote="'": specify a quoting char for output --verbose: show more output --VERSION: show version and exit --help: this help information


SMAN Related Software