Skip to content

kokkonisd/logfind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logfind

A grep-like log-searching tool, written in C. Inspired by Zed A. Shaw's "Learn C The Hard Way".


how to install logfind

To install logfind, simply get the latest version, decompress it, cd into it, then run:

$ make install

how to uninstall logfind

To uninstall logfind, cd into its previously downloaded package, then run:

$ make uninstall

how to use logfind

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.

logical and

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".

logical or

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".

version

To get logfind's current version, simply run

$ logfind -v

or

$ logfind --version

help

To get a list of all the available commands, simply run

$ logfind --help