Date: Wed, 25 Feb 1998 16:20:57 -0500 (EST) From: Robert Watson <robert@cyrus.watson.org> To: Max Euston <meuston@jmrodgers.com> Cc: "'FreeBSD Hackers'" <freebsd-hackers@FreeBSD.ORG> Subject: Re: New utilities: factor(1) and wid(1)? Message-ID: <Pine.BSF.3.96.980225161925.18757A-100000@trojanhorse.pr.watson.org> In-Reply-To: <01BD4207.4AA87440.meuston@jmrodgers.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980225161925.18757A-100000>