[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: truncate (now it's free, for real!)



On Mon, Mar 08, 2004 at 22:46:21 -0800, Matt Zimmerman wrote:
> Is something so trivial worth packaging?  It sounds like it doesn't do
> anything that dd doesn't.

Oh, yes, it is worth it! In fact, some month ago I wrote a tool like this
for my personal use to cut movie files which are slightly to big to fit on a
CD.

And yes, you can do something like this with dd, but dd always copies the
file using the supplied blocksize. So you have to copy 700MB in chunks of
2kB each just to trunc the trailing few kB: Keeps your HDD busy for a long
time and is very annoying.


  Michael


-- 
-----BEGIN GEEK CODE BLOCK------
Version: 3.12
GCS/E d-(+) s:- a33 C++ UL+++ P++ L+++>$ E- W++ N++ !o K? w-- !O M-
!V !PS PE Y+ PGP+ t+ 5 X+ R- tv-- b++ !DI D- G e+++ h--- r++> y+++ 
------END GEEK CODE BLOCK------



Reply to: