bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6381: [PATCH] Add digit grouping option for file sizes in "ls"


From: Sam Bobroff
Subject: bug#6381: [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.

Attachment: ls.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]