truncate
Command line tools:
head -- if the file is plain ascii
dd -- any type
-Gyepi
On Wed, Jan 17, 2001 at 10:05:09AM -0500, Anthony R. J. Ball wrote:
>
> I can't for the life of me think how to do this... I
> think I knew once...
>
> I have a large file that I want to strip an specified
> number of bytes off the end of... I figure I want to
> seek back that many bytes from the end and put in an
> eof... but I can't think of how to do this now...
>
> I mean, I can seek it, but how do I put in an eof there,
> or cut off the file another way. (for all I know there
> is a command line command to do it).
>
> Thanks
>
> --
> ___ __ __ __ _ _ ____ _ _ ____ ____
> / __)( )( ) /__\( \/ )( ___) ( \( )( ___)(_ _)
> \__ \ )(__)( /(__)\\ / )__) ) ( )__) )(
> (___/(______)(__)(__)\/ (____)()(_)\_)(____) (__)
> If you see an onion ring ... answer it!_
>