A grep-like log-searching tool, written in C. Inspired by Zed A. Shaw's "Learn C The Hard Way".
To install logfind, simply get the latest version, decompress it, cd
into it, then run:
$ make install
To uninstall logfind, cd
into its previously downloaded package, then run:
$ make uninstall
In order for logfind to work, you have to input a list of log files you want to search through. To do that, simply write the file names of the log files you want to search through in ~/.logfind
. The files should be separated by newlines.
By default, logfind searches for the specified terms by putting a logical and between them. For example,
$ logfind wifi system
will output a list of log files containing both "wifi" and "system".
To change the default logical and behaviour, simply use the -o
option.
For example,
$ logfind -o wifi system
will output a list of log files containing either "wifi" or "system".
To get logfind's current version, simply run
$ logfind -v
or
$ logfind --version
To get a list of all the available commands, simply run
$ logfind --help