|Ralph Rönnquist 96c39d4b8b||1 year ago|
|Makefile||1 year ago|
|README.adoc||1 year ago|
|trimfile.8.adoc||1 year ago|
|trimfile.c||1 year ago|
This is a utility program to trim a log file by "removing" the head portion, or actually, to copy up the tail portion over the beginning, and then truncate the file. This results in an in situ change to the file, which gets "propagated" to all open file descriptors at once.
Note that some data may be lost for a process that is in the middle of appending data when the file is truncated.
See also the the man page.