home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / shark.lzh / uncompressdir < prev    next >
Text File  |  1990-11-12  |  290b  |  17 lines

  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' \; \
  16. -exec uncompress $OPTIONS {} \; >/dev/null
  17.