repo.or.cz
/
libex.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix
[libex.git]
/
dpkg-view.sh
blob
39c34938838769bec8e8d4356963ff45f3a142a2
1
#!/bin/bash
2
3
sum
=
0
4
for
n
in
$
(
dpkg
-c
$1
|
awk
'{print
$3
}'
)
5
do
6
sum
=
$
((
$sum
+
$n
))
7
done
8
echo
"
$1
->"
$
((
sum
/
1024
))
"Kb"