From owner-freebsd-current Wed Jan 12 15:37:56 2000 Delivered-To: freebsd-current@freebsd.org Received: from alcanet.com.au (border.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id D1DD5150A0 for ; Wed, 12 Jan 2000 15:37:46 -0800 (PST) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <40324>; Thu, 13 Jan 2000 10:29:49 +1100 Content-return: prohibited From: Peter Jeremy Subject: Re: Additional option to ls -l for large files In-reply-to: <20000113120018.H5228@cs.waikato.ac.nz>; from joerg@cs.waikato.ac.nz on Thu, Jan 13, 2000 at 09:54:17AM +1100 To: Joerg Micheel Cc: current@FreeBSD.ORG Message-Id: <00Jan13.102949est.40324@border.alcanet.com.au> MIME-version: 1.0 X-Mailer: Mutt 1.0i Content-type: text/plain; charset=us-ascii References: <200001120201.SAA26378@gndrsh.dnsmgr.net> <20000113120018.H5228@cs.waikato.ac.nz> Date: Thu, 13 Jan 2000 10:29:48 +1100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 2000-Jan-13 09:54:17 +1100, Joerg Micheel wrote: >-rw-r--r-- 1 gad staff 1951k Dec 11 03:39 asciiedit.c >-rw-r--r-- 1 gad staff 999123 Dec 11 03:39 asciisrch.c You still need to mentally re-align the numbers before you can compare the sizes. >-rw-r--r-- 1 gad staff 1951k Dec 11 03:39 asciiedit.c >-rw-r--r-- 1 gad staff 999123 Dec 11 03:39 asciisrch.c This reduces the number of significant figures to a level which allows a quicker grasp of the size, but doesn't resolve the column- width problem. The other option would be to require a flag to ls to trigger the behaviour - in which case all the files use the same suffix: $ ls -l -rw-r--r-- 1 gad staff 1951456 Dec 11 03:39 asciiedit.c -rw-r--r-- 1 gad staff 999123 Dec 11 03:39 asciisrch.c $ ls -lK -rw-r--r-- 1 gad staff 1951k Dec 11 03:39 asciiedit.c -rw-r--r-- 1 gad staff 999k Dec 11 03:39 asciisrch.c $ ls -lM -rw-r--r-- 1 gad staff 2M Dec 11 03:39 asciiedit.c -rw-r--r-- 1 gad staff 1M Dec 11 03:39 asciisrch.c Conveniently, -K, -M and -G are still available. Unfortunately, -T and -P are taken (though -p isn't). I'll stay out of the 2^x vs 10^y debate. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message