Mercurial > hg > Applications > mh
view miscellany/compress-4.0/compressdir @ 0:bce86c4163a3
Initial revision
author | kono |
---|---|
date | Mon, 18 Apr 2005 23:46:02 +0900 |
parents | |
children |
line wrap: on
line source
OPTIONS= FILES= for ARG do case "$ARG" in -*) OPTIONS="$OPTIONS $ARG";; *) FILES="$FILES $ARG";; esac done if test -z "$FILES"; then FILES="." fi set $FILES find $@ -type f -links 1 -exec test -r {} -a -s {} \; \ -exec expr '(' {} : '.*\.Z' ')' '=' 0 \; \ -exec compress $OPTIONS {} \; >/dev/null