From owner-freebsd-hackers Wed Feb 25 13:38:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA28716 for freebsd-hackers-outgoing; Wed, 25 Feb 1998 13:38:14 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA28538 for ; Wed, 25 Feb 1998 13:37:52 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id NAA21110; Wed, 25 Feb 1998 13:35:58 -0800 (PST) Message-Id: <199802252135.NAA21110@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Julian Elischer cc: Max Euston , "'FreeBSD Hackers'" Subject: Re: New utilities: factor(1) and wid(1)? In-reply-to: Your message of "Thu, 26 Feb 1998 05:21:29 +0800." <34F48B59.64880EEB@whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 25 Feb 1998 13:35:57 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Max Euston wrote: > > > > I have 2 utilities that are not in FreeBSD. > > > > - The first if factor(1) ala SVR4. It prints the prime factors of a > > number. I sometimes use it to find the "most efficient" geometry for a HD. > > It is written for 'long's, but I want to have it pick 'int'/'long'/'long > > long' (all unsigned) based on the input for speed (it uses adds, not > > multiplies). > > factor is in /usr/games > > (though it seems limited to rather small numbers) An update would be nice, then. > > - The second (non Unix) is wid(1). It finds the "width" of a file (longest > > line). It can print longest, shortest, average (mean), totals and can > > ignore trailing spaces. Suggestions for any other features is welcomed. > > can you think of a present program into which it might fit better > a an option? wc(1) -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message