Chop off end of file
Dan Nelson
dnelson at allantgroup.com
Sun Jun 26 00:01:30 GMT 2005
In the last episode (Jun 26), Svein Halvor Halvorsen said:
> I have a ~70GB, of which the last ~50GB is garbage. I know exactly at
> what byte I want to cut the file, but I do not have enough free
> diskspace to do a
>
> dd if=orig of=pre bs=... count=....
>
>
> Is it possible to just chop off the end of a file, without making a
> copy of its beginning? It's a dv-file, resulting from "fwcontrol -R".
> I left my home and forgot about it. When I returned home, the disk
> was full, and now I need to delete the garbage. I know at exactly
> what byte to cut the stream.
Try the "truncate" command.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list