From owner-freebsd-arch Mon Jul 3 3:32:57 2000 Delivered-To: freebsd-arch@freebsd.org Received: from axl.ops.uunet.co.za (axl.ops.uunet.co.za [196.31.2.163]) by hub.freebsd.org (Postfix) with ESMTP id 0676C37C00A for ; Mon, 3 Jul 2000 03:32:52 -0700 (PDT) (envelope-from sheldonh@axl.ops.uunet.co.za) Received: from sheldonh (helo=axl.ops.uunet.co.za) by axl.ops.uunet.co.za with local-esmtp (Exim 3.13 #1) id 1393Wz-0001d1-00 for freebsd-arch@FreeBSD.ORG; Mon, 03 Jul 2000 12:32:49 +0200 From: Sheldon Hearn To: freebsd-arch@FreeBSD.ORG Subject: Re: truncate(1) implementation details In-reply-to: Your message of "Mon, 03 Jul 2000 12:14:26 +0200." <200007031014.MAA60328@dorifer.heim3.tu-clausthal.de> Date: Mon, 03 Jul 2000 12:32:49 +0200 Message-ID: <6262.962620369@axl.ops.uunet.co.za> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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