Utility to "cut out" the head portion of a file in situ.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Ralph Rönnquist 96c39d4b8b Added -L option for using line based cut referencing. 2 months ago
Makefile initial 1 year ago
README.adoc fixed the man page link 1 year ago
trimfile.8.adoc Added -L option for using line based cut referencing. 2 months ago
trimfile.c Added -L option for using line based cut referencing. 2 months ago

README.adoc

trimfile

rrq

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.


Last updated 2020-08-11 01:28:03 UTC