truncate a 2gig file ?

Grant Morphett grant at gmorph.com
Wed Nov 27 16:17:22 EST 2002


I would use "split" at 700MB per output file and delete the 2nd and 3rd file.

man split

cheers

On Wed, 27 Nov 2002 15:37:05 +1100 Simon Burton scribbled:

>
>I have a 2gig file (leunig's interview thismorning on ABC classic fm)
>that i only need the first 700mb of, i haven't the disk space to
>dd it, i'm looking to just chop off the last 1.3gig or so.
>Any commands to do this? Can clib do this?
>Also i have wanted to zero length a file in the past,
>ie. just keeping the filename....
>
>thx,
>
>Simon Burton.
>
>



Grant Morphett
GMORPH CONSULTANTS Pty Ltd - Solutions Outside the Square
tel : +61 (0) 421 325348
fax : +1 309 4164790



More information about the linux mailing list