Sgrep is a tool to search and index text, SGML, XML and HTML files using
structured patterns. This example searches TITLE elements containing word
Hamlet from Jon Bosaks XML-text collections (both the religious texts
and Shakespeares works):
% time sgrep -x index 'stag("TITLE") .. etag("TITLE")
containing word("Hamlet")'
<TITLE>The Tragedy of Hamlet, Prince of Denmark</TITLE>
0.04user 0.01system 0:00.12elapsed 39%CPU (0avgtext+0avgdata
0maxresident)k
0inputs+0outputs (365major+73minor)pagefaults 0swaps
Sgrep-1.90a is still under development, but can be considered as a
major step towards version 2.0.
New features in 1.90a include
- Query operators supporting direct containment. In SGML and XML world
this means that you can query children and parents of given elements.
- The sources are available under GPL-license for those interested in
compiling sgrep themselves.
- Sgrep now uses GNU autoconf, so compiling sgrep under Unix-systems
should be easy.
- Many bug fixes
For more information about sgrep:
http://www.cs.helsinki.fi/~jjaakkol/sgrep.html
For a more complete description of the new features see the file README
in sgrep distribution or at:
http://www.cs.helsinki.fi/~jjaakkol/sgrep/README.txt
For downloading sgrep use:
http://www.cs.helsinki.fi/~jjaakkol/sgrep/downloading.html
-- My real signature is written in Finnish. Sorry about that.