From owner-freebsd-hackers Wed Feb 25 13:13:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA19530 for freebsd-hackers-outgoing; Wed, 25 Feb 1998 13:13:14 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail.jmrodgers.com ([205.247.224.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA19357 for ; Wed, 25 Feb 1998 13:12:35 -0800 (PST) (envelope-from meuston@jmrodgers.com) Received: from max.jmrodgers.com (max.jmrodgers.com [205.247.224.209]) by mail.jmrodgers.com (8.8.8/8.8.7) with SMTP id QAA12217 for ; Wed, 25 Feb 1998 16:12:06 -0500 (EST) (envelope-from meuston@jmrodgers.com) Received: by localhost with Microsoft MAPI; Wed, 25 Feb 1998 16:06:12 -0500 Message-ID: <01BD4207.4AA87440.meuston@jmrodgers.com> From: Max Euston To: "'FreeBSD Hackers'" Subject: New utilities: factor(1) and wid(1)? Date: Wed, 25 Feb 1998 16:06:10 -0500 Organization: J.M. Rodgers Co., Inc. X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Any comments...? Max P.S. Both of these are from _my_ shareware package "udos" and I am willing to give the full rights to FreeBSD. P.P.S. After the "fiasco" with my changes to more(1) (finding out about 'stty rows XX cols XX'), I figure I should try some more simple things until I'm more used to FreeBSD 8-). ----- Max Euston Sysadm, Programmer, etc... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message