toolbox

taillast
Login

Tail file from last saved offset

Download

taillast

Usage

$ taillast -h
Tail file from last saved offset
Usage:
	taillast <file> <offsetfile>
Options:
	-h : display this help and exit

Example

taillast can be used to process a growing log file, applying some processing every 10 seconds:

while true; do
	taillast access.log /tmp/access.offset | <some-processing>
	sleep 10
done