Re: such skript

"Kai Zimmer" <[email protected]>
Newsgroups gmane.linux.suse.programming
Message-ID <[email protected]>
Hallo Daniel,

wie wärs denn mit einem kleinen Shellscript:

grep -f <suchbegriff> htdocs/

grep gibt die Trefferstelle mit Kontext aus. -f müsste den Dateinamen mit ausgeben. Für eine kleine einfache statische Seite könnte man damit schon auskommen... Falls das zu langsam ist (die Suche erfolgt ja nicht über einen Index) könntest Du auch das schnellere fgrep nehmen - oder halt eine echte Suchmaschine installieren.

Gruß,
Kai 


-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.