BSD Ports

textproc/sgrep2 1.94a_1 FreeBSD

Grep for structured text like SGML and HTML

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Categories
textproc
Package size
74.5 KiB, 163.8 KiB installed

Description

sgrep (structured grep) is a tool for searching and indexing text, SGML,XML and HTML files and filtering text streams using structural criteria. The data model of sgrep is based on regions, which are nonempty substrings of text. Regions are typically occurrences of constant strings, SGML-tags, or meaningful text elements, which are recognizable through some delimiting strings or the builtin SGML, XML and HTML parser. Regions can be arbitrarily long, arbitrarily overlapping, and arbitrarily nested.

Sgrep is a convenient tool for making queries to almost any kind of text files with some well kown structure. These include programs, mail folders, news folders, HTML, SGML, etc... With relatively simple queries you can display mail messages by their subject or sender, extract titles or links or any regions from HTML files, function prototypes from C or make complex queries to SGML files based on the DTD of the file.

In the other systems

SystemPortVersion
FreeBSDtextproc/sgrep21.94a_1
DragonFlytextproc/sgrep21.94a_1

Install

Binary package:

pkg install sgrep2

From the ports tree:

cd /usr/ports/textproc/sgrep2/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	sgrep2>0:textproc/sgrep2

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.94a_11.94a_11.94a1.94a_11.94a_1
FreeBSD:14:quarterly1.94a_11.94a_1n/a1.94a_11.94a_1
FreeBSD:15:latest1.94a_11.94a_1n/a1.94a_11.94a_1
FreeBSD:15:quarterly1.94a_11.94a_1n/an/an/a
FreeBSD:16:latest1.94a_11.94a_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Conflicts with
sgrep-0.*

Message after installing

===>   NOTICE:

The sgrep2 port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing

Files

Manual pages 1
  • sgrep(1)
pkg-plist 3
  • bin/sgrep
  • share/man/man1/sgrep.1.gz
  • share/sgrep2/sample.sgreprc
distinfo 1
FileSizeSHA256
sgrep-1.94a.tar.gz193267d5b16478e3ab44735e24283d2d895d2c9c80139c95228df3bdb2ac446395faf9
Master sites 1
  • LOCAL/jkoshy

Commit history 0

No commits in the history this site was built from.