NAME
clog - Searches, displays, and colorizes log files.
SYNOPSIS
clog [-ZJelvi] [-g <grep search string>] <log>
clog [-ZJelFvi] [-g <grep search string>] -h [-n <int>] <log>
clog [-ZJeflFvi] [-g <grep search string>] -t [-n <int>] <log>
DESCRIPTION
clog is basically a frontend to bunzip, gunzip, grep, colorize, less, head, and tail that exists for the purpose of reducing the amount of typing and piping when viewing/searching log files.
FLAGS
-e
Echos the command to STDOUT before running it.
-f
Follows the file in question.
It implies -t and -n with a value of 10 if it is not specified.
Can't be combined with -h or -F.
-F
Run grep first.
Can't be combined with -f.
-g <grep string>
A search string to pass to grep if desired.
-h
Head the log file
Can't be combined with -t.
-i
Grep is case insensitive.
-J
The file should be un-bzip2ed.
-l
Pass the output to less -R.
-n <int>
The number of lines for either head or tail.
If this is not specified, 10 is used.
-t
Tail the log file.
Can't be combined with -h.
-v
Grep is inverted.
-Z
The file should be un-gzipped.