Gentoo Archives: gentoo-dev

From: Daniel Drake <dsd@g.o>
To: Jason Cooper <gentoo@××××××××××.net>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] coreutils patch for 'ls -l' of GB files
Date: Sat, 24 Apr 2004 21:50:17
Message-Id: 408AE1D1.7050308@gentoo.org
In Reply to: Re: [gentoo-dev] coreutils patch for 'ls -l' of GB files by Jason Cooper
1 Jason Cooper wrote:
2 > Agreed, would an "auto-adjusting width" be a worthwhile endevour? It
3 > seems kind of pointless to add a commandline option just to increase the
4 > column width two characters, not to mention temporary (tera/peta-byte size
5 > files?). A more robust solution would be for the option to allow the
6 > column width to shrink and grow based on the largest file in the list.
7
8 Take a look at the NameWidth option here:
9 http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html#indexoptions
10 (ok, its for file names, but the same principle applies)
11
12 So we could have something like:
13
14 ls -l
15 - gives sizes as 8 characters as normal
16
17 ls -l --sizewidth=10
18 - gives size column as 10 characters
19
20 ls -l --sizewidth=*
21 - size column auto-expands to fit
22
23
24 Daniel
25
26 --
27 gentoo-dev@g.o mailing list