Rechercher une page de manuel

Chercher une autre page de manuel:

webfgrep

Langue: en

Version: Feb 1999 (mandriva - 01/05/08)

Section: 1 (Commandes utilisateur)

NAME

webfgrep - a poor man's web search engine.

SYNOPSIS

webfgrep [-ahist] [-p prefix] -- [key1,...] html-files

DESCRIPTION

webfgrep uses memory mapped file access and can therefore search a large number of html pages in a short time. With webfgrep and a cgi-bin front-end it is possible to build a fast web search engine for small web sites with about 1Mb of html pages. You can specify up to 3 key word. A web page matches when it contains all 3 keys.

Please note that you must consider a number of important security issues when writing a cgi-bin front-end. The minimum security is to escape all non word characters ([^A-Z_a-z0-9]) before passing the search keys to the webfgrep command line. A better security mechanism would remove any "garbage characters" and use the -s option to feed the user input directly to webfgrep without passing this data to the shell. 2 sample cgi-bin front-ends are provided in the distribution of webfgrep. The sample cgi-bins are designed for searching English web pages but can easily be modified to search also web pages based on other character sets. You mainly need to address the issue of how characters that are specific to your language are represented in html format.

OPTIONS

-a
Anchor search, search whole words no substring search
-h
Prints a little help/usage information.
-i
Search case insensitive (works only with ISO-8859-1 character sets)
-p prefix
Path prefix to add when displaying the result
-s
Read the keys form stdin rather than from the command line.
-t
Text output (default is html)

EXAMPLE

Search for the complete words guido and File in all webpages in the current directory. Only web pages that contain both words do match:
webfgrep -a -p http://some.hostname.com/ -- guido,File *.html

Search all html files for the sub string Linux:
(cd /home/http/html;webfgrep -p http://some.hostname.com/ -- linux `find . -name '*.htm*' -print`)

BUGS

no known bugs

AUTHOR

Guido Socher (guido.s@writeme.com)

SEE ALSO

fgrep(1), hrefgrep(1), srcgrep(1), blnkcheck(1), lshtmlref(1), taggrep(1)
<vodkatux> salut.. j'ai besoin d'aide... j'ai effacer mon fichier hda1 dans /dev.. ques ce que je fait...?
<w00f> vodkatux: t'a efface /dev/hda1 ?
<vodkatux> si tu me le send le tien sa fait tu pareil?
<w00f> non, c'pas pareil
<vodkatux> pouquoi c'est pas pareil c'est juste un fichier non?
<w00f> MDR MDR MOUARF MDR, /dev/hda1 c'est ton disque dur
<vodkatux> ben j'ai juste effacer le fichier qui s'appelle hda1 dans lke repertoire /dev
<vodkatux> c'est ma partition windows... pis elle marche encore
<w00f> ben j'peux pas t'envoyer mon /dev/hda1
<vodkatux> comment ca tu peut pas
<w00f> paske, hda1 est MON disque dur
<vodkatux> ben non... essaye tu va voir... tu fait un dcc de ce fichier la... je suis sur que sa marche