Next: , Previous: 概観, Up: Top


2 出力の見本

さて、これが gzip を実行する現実的な例です。

これは ‘gzip -h ’ というコマンドの出力です:

     gzip 1.2.4 (18 Aug 93)
     usage: gzip [-cdfhlLnNrtvV19] [-S suffix] [file ...]
      -c --stdout      write on standard output, keep original files unchanged
      -d --decompress  decompress
      -f --force       force overwrite of output file and compress links
      -h --help        give this help
      -l --list        list compressed file contents
      -L --license     display software license
      -n --no-name     do not save or restore the original name and time stamp
      -N --name        save or restore the original name and time stamp
      -q --quiet       suppress all warnings
      -r --recursive   operate recursively on directories
      -S .suf  --suffix .suf     use suffix .suf on compressed files
      -t --test        test compressed file integrity
      -v --verbose     verbose mode
      -V --version     display version number
      -1 --fast        compress faster
      -9 --best        compress better
      file...          files to (de)compress. If none given, use standard input.

これは ‘gzip -v texinfo.tex’ というコマンドの出力です:

     texinfo.tex:             71.6% -- replaced with texinfo.tex.gz

次のコマンドは現在のディレクトリやサブディレクトリにおいて、あらゆる gzip ファイルを検索し、元のファイルを壊さずに適切に展開します:

     find . -name '*.gz' -print | sed 's/^\(.*\)[.]gz$/gunzip < "&" > "\1"/' | sh