From owner-freebsd-hackers Wed Feb 25 13:31:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA26038 for freebsd-hackers-outgoing; Wed, 25 Feb 1998 13:31:15 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA25884 for ; Wed, 25 Feb 1998 13:30:49 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id NAA01171; Wed, 25 Feb 1998 13:25:38 -0800 (PST) Received: from UNKNOWN(), claiming to be "current1.whistle.com" via SMTP by alpo.whistle.com, id smtpd001166; Wed Feb 25 13:25:33 1998 Message-ID: <34F48B59.64880EEB@whistle.com> Date: Thu, 26 Feb 1998 05:21:29 +0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2.5-RELEASE i386) MIME-Version: 1.0 To: Max Euston CC: "'FreeBSD Hackers'" Subject: Re: New utilities: factor(1) and wid(1)? References: <01BD4207.4AA87440.meuston@jmrodgers.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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) julian > > - 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? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message