kgrep searches through a file or files for a specified pattern and displays the target line containing the pattern as well as a certain number of lines on either side of the target line. GNU grep can do this with the -A, -B and -C switches, and other platform-specific grep implementations may have similar functionality. The main advantage to kgrep is that it's small and can be easily used on any system that has Perl5 installed, rather than going through the hassle of installing a different grep binary (this is actually what the author uses it for most often).
Cedar Backup is a software package designed to manage system backups for a pool of local and remote machines. Cedar Backup understands how to back up filesystem data as well as MySQL and PostgreSQL databases and Subversion repositories. It can also be easily extended to support other kinds of data sources. Cedar Backup is focused around weekly backups to a single CD or DVD disc. It supports multisession discs, allowing you to add incremental data to a disc on a daily basis. Cedar Backup also provides a Python library of backup-related functionality.
Re: GNU grep
> GNU grep can do that too with -A and -B
> switches. You should really update the
> description of the tools with some good
> reasons why it is superior to the
> standard grep that is probably available
> on any system.
I admit to missing the -A and -B options in the GNU grep manpage. Yes, these options are equivalent to kgrep's -n option.
Incidentally, I never said that the tool was "superior" to GNU grep or any other grep. I just said "some of this functionality may be duplicated in some versions of grep, but the script is still useful and will work on any machine which has Perl5 installed".
Yes, GNU grep is available on most Linux systems, but in my experience, it's often not installed on the proprietary systems I use (which happen to include Perl5 with some regularity). I sometimes find it easier to install a small Perl script than build and install GNU grep on those machines.
So, there's no need to update the description. It's accurate as it stands. Unless there's something specific in the description that you think is wrong? (I agree that my response to the -C question was incorrect.)
Re: GNU grep
> Doesn't GNU grep do this with -C ?
Roughly, but not quite. You can't ask GNU grep to give you a different number of lines of context above and below a given match. So, 'grep -C 2' (to get two lines of context above and below) is equivalent to 'kgrep -n 2' or 'kgrep -n 2,2', but kgrep also allows 'kgrep -n 1,2' or 'kgrep -n 0,5' (to get, respectively, one line above and two below, or no lines above and five below).
Besides, the description of the project does say, "Some of this functionality may be duplicated in some versions of grep, but the script is still useful and will work on any machine which has Perl5 installed." :-)