[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
thousands separator
From: |
Gary Ashburn |
Subject: |
thousands separator |
Date: |
Wed, 01 Jul 2009 11:25:15 -0400 |
GNU Awk 3.1.6
dir | dirsum.bat
@echo off
gawk -f c:\c\util\dirsum.awk (with -W traditional produces
a constant character rather than random)
BEGIN { FS = " " }
{ print }
/^[^ ]/ { gsub(/,/ , "", $4) ; sum+= $4 }
END { print "" ; printf " Matching Files : %'15d\n" ,
sum }
Rather than a comma thousands separator a random character is substituted.
In some cases this seems to be effected by what the current working
directory is.
with "-W traditional" produces a constant character "e" rather than a random
character
3.1.5 has different behavior but doesn't produce commas either.
Thanks,
Gary
- thousands separator,
Gary Ashburn <=
Re: thousands separator, Aharon Robbins, 2009/07/04
Re: thousands separator, Aharon Robbins, 2009/07/06