From owner-freebsd-arch Mon Jul 3 18:50:35 2000 Delivered-To: freebsd-arch@freebsd.org Received: from dorifer.heim3.tu-clausthal.de (dorifer.heim3.tu-clausthal.de [139.174.243.252]) by hub.freebsd.org (Postfix) with ESMTP id 421FA37C53F for ; Mon, 3 Jul 2000 18:50:32 -0700 (PDT) (envelope-from olli@dorifer.heim3.tu-clausthal.de) Received: (from olli@localhost) by dorifer.heim3.tu-clausthal.de (8.9.3/8.9.3) id DAA83143; Tue, 4 Jul 2000 03:50:31 +0200 (CEST) (envelope-from olli) Date: Tue, 4 Jul 2000 03:50:31 +0200 (CEST) Message-Id: <200007040150.DAA83143@dorifer.heim3.tu-clausthal.de> From: Oliver Fromme To: freebsd-arch@FreeBSD.ORG Reply-To: freebsd-arch@FreeBSD.ORG Subject: Re: truncate(1) implementation details X-Newsgroups: list.freebsd-arch In-Reply-To: <8jpso8$2dds$1@atlantis.rz.tu-clausthal.de> Organization: Administration TU Clausthal MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (FreeBSD/3.4-19991219-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In list.freebsd-arch Sheldon Hearn wrote: > On Mon, 03 Jul 2000 12:41:57 +0200, Oliver Fromme wrote: > > Great! I assume it also supports the usual suffixes ("K" > > Kbyte, "M" Mbyte etc.), right? > > No. Does yours? Yes. And an -r option to use the size of another file as a reference (similar to the -r option of touch(1)). > Is your source up for grabs? Sure: http://www.fromme.com/truncate/ I just hacked together a small manpage, but I'm not a native English speaker, so it probably needs a bit of editing. Regards Oliver -- Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany (Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) "In jedem Stück Kohle wartet ein Diamant auf seine Geburt" (Terry Pratchett) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message