repo.or.cz
/
swg-src.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged in Governor-Tarkin/swg-src (pull request #17)
[swg-src.git]
/
tools
/
sumFileSize.pl
blob
6aec8173bac6974bb832449a7bf4e0d86cdb9f98
1
# Perl script to sum up the size of files.
2
3
$sum
=
0
;
4
$entries
=
0
;
5
6
while
(<>)
7
{
8
if
(
/^TF.+size=([0-9]+)\]$/
)
9
{
10
$sum
+=
$1
;
11
$entries
++;
12
}
13
}
14
15
print
"Sum of size lines:
$sum
(from
$entries
contributing entries)
\n
"
;