I feel I should know this, but nothing comes to mind. I need to truncate a
6.5G file to the first 2G of the file. The remainder can be thrown away.
There is no space left on the filesystem. So whatever I do has to be done
to the original, copying the first 2G to another file is not going to cut
the mustard.

man [2|3p] truncate seems to reveal a c function, but I cannot find a
command line equivalent.

(That'll teach me to use dvbstream running all night)
-- 
Nick Rout

Reply via email to