GNU bug report logs - #6381
[PATCH] Add digit grouping option for file sizes in "ls"

Previous Next

Package: coreutils;

Reported by: Sam Bobroff <samb <at> firx.net>

Date: Wed, 9 Jun 2010 06:17:02 UTC

Severity: wishlist

Tags: moreinfo, patch

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sam Bobroff <samb <at> firx.net>
To: bug-coreutils <at> gnu.org
Subject: [PATCH] Add digit grouping option for file sizes in "ls"
Date: Wed, 09 Jun 2010 14:05:29 +1000
[Message part 1 (text/plain, inline)]
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 (text/plain, attachment)]

This bug report was last modified 15 years and 44 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.