repo.or.cz
/
sunny256-utils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
std.c: Don't use `EXIT_SUCCESS`/`EXIT_FAILURE` as function return values
[sunny256-utils.git]
/
tarsize
blob
33c2c8053a01bfbefc344bf6a60ab79536314fd4
1
#!/bin/sh
2
3
# tarsize
4
# File ID: 68aa6aee-5d46-11df-a094-90e6ba3022ac
5
# Viser størrelsen på en tar-fil av en directory.
6
7
if
[
$#
-eq
0
];
then
8
DIR
=
"."
9
else
10
DIR
=
$1
11
fi
12
13
echo
"Upakket: `tar cf -
$DIR
2>/dev/null | wc -c`"
14
echo
"Pakket : `tar czf -
$DIR
2>/dev/null | wc -c`"