Trim a file in place without copying.
I have a large file that needs to be trimmed by a shell script periodically. Normally I would just use the head command or dd but this is running on an embedded system and won't always have enough free space to make a copy of the file. Does anyone know of a way I can trim off part of the end of a file without making a copy of it?
Last edited by Narcopolypse; 08-18-2009 at 11:57 PM.
|