From owner-freebsd-hackers Wed Feb 25 13:24:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA23569 for freebsd-hackers-outgoing; Wed, 25 Feb 1998 13:24:59 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from fledge.watson.org (root@FLEDGE.RES.CMU.EDU [128.2.91.116]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA23381 for ; Wed, 25 Feb 1998 13:24:05 -0800 (PST) (envelope-from robert@cyrus.watson.org) Received: from trojanhorse.pr.watson.org (trojanhorse.pr.watson.org [192.0.2.10]) by fledge.watson.org (8.8.8/8.6.10) with SMTP id QAA02003; Wed, 25 Feb 1998 16:22:48 -0500 (EST) Date: Wed, 25 Feb 1998 16:20:57 -0500 (EST) From: Robert Watson X-Sender: robert@trojanhorse.pr.watson.org Reply-To: Robert Watson To: Max Euston cc: "'FreeBSD Hackers'" Subject: Re: New utilities: factor(1) and wid(1)? In-Reply-To: <01BD4207.4AA87440.meuston@jmrodgers.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 25 Feb 1998, 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). > > - 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. /usr/games/factor provides the factoring service. Don't know of a wid-like utility. Sounds interesting, although I'm not sure how often I'd use it. Robert N Watson Carnegie Mellon University http://www.cmu.edu/ SafePort Network Services http://www.safeport.com/ robert@fledge.watson.org http://www.watson.org/~robert/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message