gzip: Sample
1
1 2 Sample output
1 ***************
1
1 Here are some realistic examples of running ‘gzip’.
1
1 This is the output of the command ‘gzip -h’:
1
1 Usage: gzip [OPTION]... [FILE]...
1 Compress or uncompress FILEs (by default, compress FILES in-place).
1
1 Mandatory arguments to long options are mandatory for short options too.
1
1 -c, --stdout write on standard output, keep original files unchanged
1 -d, --decompress decompress
1 -f, --force force overwrite of output file and compress links
1 -h, --help give this help
1 -k, --keep keep (don't delete) input files
1 -l, --list list compressed file contents
1 -L, --license display software license
1 -n, --no-name do not save or restore the original name and timestamp
1 -N, --name save or restore the original name and timestamp
1 -q, --quiet suppress all warnings
1 -r, --recursive operate recursively on directories
1 --rsyncable make rsync-friendly archive
1 -S, --suffix=SUF use suffix SUF on compressed files
1 --synchronous synchronous output (safer if system crashes, but slower)
1 -t, --test test compressed file integrity
1 -v, --verbose verbose mode
1 -V, --version display version number
1 -1, --fast compress faster
1 -9, --best compress better
1
1 With no FILE, or when FILE is -, read standard input.
1
1 Report bugs to <bug-gzip@gnu.org>.
1
1 This is the output of the command ‘gzip -v texinfo.tex’:
1
1 texinfo.tex: 69.3% -- replaced with texinfo.tex.gz
1
1 The following command will find all regular ‘.gz’ files in the
1 current directory and subdirectories (skipping file names that contain
1 newlines), and extract them in place without destroying the original,
1 stopping on the first failure:
1
1 find . -name '*
1 *' -prune -o -name '*.gz' -type f -print |
1 sed "
1 s/'/'\\\\''/g
1 s/^\\(.*\\)\\.gz$/gunzip <'\\1.gz' >'\\1'/
1 " |
1 sh -e
1