File size distribution: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: thanks to WP, suppressed an errant message.)
m (→‎{{header|REXX}}: added output from a later version of Microsoft Windows.)
Line 461:
commas: parse arg _; do j#=length(_)-3 to 1 by -3; _=insert(',', _, j#); end; return _</lang>
This REXX program makes use of &nbsp; '''LINESIZE''' &nbsp; REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console) so as to maximize the width of the histogram.
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[LINESIZE.REX]].<br>
 
{{out|output|text=The &nbsp; when using the default input:'''LINESIZE.REX''' &nbsp; (whichREXX inprogram thisis caseincluded was thehere &nbsp; '''C:'''──► &nbsp; drive[[LINESIZE.REX]].)}}<br>
 
{{out|output|text=&nbsp; when using the default input: &nbsp; (which in this case was the &nbsp; '''C:''' &nbsp; homedrive, a Windows/XP system.)}}
<pre>
record size range count
Line 480 ⟶ 481:
 
55,539 files detected, 12,656,593,862 total bytes.
</pre>
 
{{out|output|text=&nbsp; when using the default input: &nbsp; (which in this case was the &nbsp; '''C:''' &nbsp; homedrive, a Windows 7 system.)}}
<pre>
record size range count
══════════════════ ═════════
zero 162 ─
1 ──► 9 129 ─
10 ──► 99 2,292 ─
100 ──► 999 23,212 ─────────
1000 ──► 9999 54,814 ───────────────────────────────────────────────────
10^4 ──► 10^5 ─1 37,335 ────────────────────────
10^5 ──► 10^6 ─1 17,523 ─
10^6 ──► 10^7 ─1 9,732 ─
10^7 ──► 10^8 ─1 549 ─
10^8 ──► 10^9 ─1 144 ─
10^9 ──► 10^10 ─1 8 ─
10^10 ──► 10^11 ─1 1 ─
 
145,901 files detected, 118,717,664,126 total bytes.
</pre>