Andrew Lentvorski wrote: > Is there a quick way to remove the last 10 bytes from a big honking file? >
I have asked myself that a number of times. Especially since there is a libc function to do it: man 2 truncate Each time I go looking for something called truncate resize chsize I've been too lazy to write one, it would be pretty simple, eh? (I think I had one in DOS!) I usually lose patience and use dd. With a big file, maybe it would be an incentive to write one. Or use perl (probably) perldoc -f truncate (but this only shortens) Regards, ..jim -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
