Files
SWG_Client_Next_Main/tools/sumFileSize.pl
2016-06-01 15:00:39 -04:00

16 lines
221 B
Raku

# Perl script to sum up the size of files.
$sum = 0;
$entries = 0;
while (<>)
{
if (/^TF.+size=([0-9]+)\]$/)
{
$sum += $1;
$entries++;
}
}
print "Sum of size lines: $sum (from $entries contributing entries)\n";