Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Jul 2000 12:32:49 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        freebsd-arch@FreeBSD.ORG
Subject:   Re: truncate(1) implementation details 
Message-ID:  <6262.962620369@axl.ops.uunet.co.za>
In-Reply-To: Your message of "Mon, 03 Jul 2000 12:14:26 %2B0200." <200007031014.MAA60328@dorifer.heim3.tu-clausthal.de> 

next in thread | previous in thread | raw e-mail | index | archive | help


On Mon, 03 Jul 2000 12:14:26 +0200, Oliver Fromme wrote:

> By the way, does Alexander's implementation handle negative numbers
> as well (meaning the numbers of bytes to strip from the end of the
> file)?  If not, I'd like to submit a patch for this, as I've found
> that feature to be extremely useful (e.g. ``truncate -128 foo.mp3'' to
> strip ID3 junk from mp3 files).

I plan to patch his version to allow prepending + and - to the size to
indicate a delta rather than an absolute size.

Ciao,
Sheldon.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6262.962620369>