--- Begin Message ---
Subject: |
[PATCH] Add digit grouping option for file sizes in "ls" |
Date: |
Wed, 09 Jun 2010 14:05:29 +1000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 |
Hello,
Please excuse me if I'm not going about this the right way but I would
like to offer a tiny patch for "ls" that adds an option to turn on digit
grouping for file sizes in the long output format.
(The support for displaying digit grouping is already present, all that
is required is an option for turning it on.)
I find it a very nice way to view file sizes because it makes it easy to
read the size of large files (like -h) but it does not hide any
information (unlike -h).
For example:
$ ls -l bigfile
-rw-r--r-- 1 samb samb 2146034154 2010-06-08 14:55 big.log
$ ls -ly bigfile
-rw-r--r-- 1 samb samb 2,146,034,154 2010-06-08 14:55 big.log
(The patch is against the latest git checkout but I have only actually
compiled it against the latest .tar release due to dependencies.)
Peace out,
Sam Bobroff.
ls.diff
Description: Text document
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#6381: [PATCH] Add digit grouping option for file sizes in "ls" |
Date: |
Thu, 10 Jun 2010 19:09:45 -0600 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Sam Bobroff wrote:
> Oh! How embarrassing. I'd very carefully read the man page looking for
> this but I never thought it would only be documented in the info pages
> (yes, even though the man page states that the full documentation is in
> the info pages). Well, we live and learn.
>
> It's great that it already has this feature :-)
Those are the easiest bugs to fix! :-)
And so I am going to mark the bug as done and close it with this
message.
Bob
--- End Message ---