BSD-licensed grep

Gabor Kovesdan gabor at FreeBSD.org
Mon Jun 16 21:39:33 UTC 2008


Hello All,

I've basically terminated te feature-completion of the BSD-licensed grep 
from OpenBSD. It means, that I've accomplished the following tasks:
- Implement --label
- Implement --null
- Implement --color / --colour
- Implement -D / --devices
- Implement -H / --with-filename
- Implement -J / --bz2decompress
- Implement -d / --directories
- Implement -m / --max-count
- Implement -o / --only-matching
- Add --help
- Eliminate warnings
- style(9) cleanup

I've made some preliminary tests with the fgrep and normal grep 
behaviour and it seems that they can achieve the same speed.

What remains is to do more test about the performance and the 
compatibility with the GNU version. You can test this version easily by 
installing the textproc/bsdgrep port, which creates two symlinks:
bsdgrep points to this version and gnugrep points to the base grep.

Any help and comments are welcome.

Regards,
Gábor Kövedán

P.S.: Acknowledgements are going to Max Khon, who is my mentor in this 
program, to Diomidis Spinellis due to the his useful comments and to 
Sean C. Farley who worked on this implementation of grep before and 
provided some preliminary comments and suggestions before I started 
working on this project, and of course, to Google for sponsoring this 
piece of work.


More information about the freebsd-wip-status mailing list