On 2000-Jan-13 09:54:17 +1100, Joerg Micheel <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to