Mercurial > hg > Applications > mh
comparison miscellany/compress-4.0/compressdir @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bce86c4163a3 |
---|---|
1 OPTIONS= | |
2 FILES= | |
3 for ARG | |
4 do | |
5 case "$ARG" in | |
6 -*) OPTIONS="$OPTIONS $ARG";; | |
7 *) FILES="$FILES $ARG";; | |
8 esac | |
9 done | |
10 if test -z "$FILES"; then | |
11 FILES="." | |
12 fi | |
13 set $FILES | |
14 find $@ -type f -links 1 -exec test -r {} -a -s {} \; \ | |
15 -exec expr '(' {} : '.*\.Z' ')' '=' 0 \; \ | |
16 -exec compress $OPTIONS {} \; >/dev/null |