Using RVP's recipes -- success!
Thank you very much, and d'oh, of course it makes sense that the default
C/POSIX locale is "" -- the most 'reasonable' default.
p.s. yes, I used "ls -lM" not just the -M flag. You need -l otherwise
-M by itself is a no-op.
On Fri, May 26, 2023 at 11:50 PM
On Fri, 26 May 2023, Michael Cheponis wrote:
I'm having no success trying to get ls to print file sizes, using the -M
flag.
The `thousands separator' char. is locale-specific. In the default C/POSIX
locale, it is "":
$ locale -c thousands_sep
LC_NUMERIC
$ LC_NUMERIC=C locale -c
I'm having no success trying to get ls to print file sizes, using the -M
flag.
-MModifies the -l and -s options, causing the sizes or block counts
reported to be separated with commas (or a locale appropriate
separator) resulting in a more readable output.