minix/commands/grep
Ben Gras 2fe8fb192f Full switch to clang/ELF. Drop ack. Simplify.
There is important information about booting non-ack images in
docs/UPDATING. ack/aout-format images can't be built any more, and
booting clang/ELF-format ones is a little different. Updating to the
new boot monitor is recommended.

Changes in this commit:

	. drop boot monitor -> allowing dropping ack support
	. facility to copy ELF boot files to /boot so that old boot monitor
	  can still boot fairly easily, see UPDATING
	. no more ack-format libraries -> single-case libraries
	. some cleanup of OBJECT_FMT, COMPILER_TYPE, etc cases
	. drop several ack toolchain commands, but not all support
	  commands (e.g. aal is gone but acksize is not yet).
	. a few libc files moved to netbsd libc dir
	. new /bin/date as minix date used code in libc/
	. test compile fix
	. harmonize includes
	. /usr/lib is no longer special: without ack, /usr/lib plays no
	  kind of special bootstrapping role any more and bootstrapping
	  is done exclusively through packages, so releases depend even
	  less on the state of the machine making them now.
	. rename nbsd_lib* to lib*
	. reduce mtree
2012-02-14 14:52:02 +01:00
..
binary.c grep: unsigned chars to fix gcc warnings. 2010-06-20 12:31:55 +00:00
file.c fixes for minix grep 2010-06-20 11:55:19 +00:00
grep.1 original openbsd grep (freegrep) 2010-06-20 11:54:40 +00:00
grep.c fixes for minix grep 2010-06-20 11:55:19 +00:00
grep.h grep: unsigned chars to fix gcc warnings. 2010-06-20 12:31:55 +00:00
Makefile Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
mmfile.c fixes for minix grep 2010-06-20 11:55:19 +00:00
queue.c original openbsd grep (freegrep) 2010-06-20 11:54:40 +00:00
readme.md original openbsd grep (freegrep) 2010-06-20 11:54:40 +00:00
util.c grep - letting calloc() return NULL for 0 storage makes grep "" work 2011-02-20 13:34:53 +00:00

FreeGrep

The grep utility searches any given input files, selecting lines that match one or more patterns. By default, a pattern matches an input line if the regular expression in the pattern matches the input line without its trailing newline. An empty expression matches every line. Each input line that matches at least one of the patterns is written to the standard output. grep is used for simple patterns and basic regular expressions; egrep can handle extended regular expressions. fgrep is quicker than both grep and egrep, but can only handle fixed patterns (i.e. it does not interpret regular expressions). Patterns may consist of one or more lines, allowing any of the pattern lines to match a portion of the input. zgrep, zegrep, and zfgrep act like grep, egrep, and fgrep, respectively, but accept input files compressed with the compress or gzip compression utilities.