zcat
zcat is identical to gunzip -c. (On some systems, zcat may be installed as gzcat to preserve the original link to compress.) zcat uncompresses either a list of files on the command line or its standard input and writes the uncompressed data on standard output. zcat will uncompress files that have the correct magic number whether they have a .gz suffix or not.[1]
Documentation
- man 1 'zcat' [EN]
Examples
- Update the kernel to 2.6.30
cd '/usr/src/'
cp "${HOME}/tmp/patch-2.6.30.gz" '.'
zcat 'patch-2.6.30.gz' | patch -p0
References
- ↑ man 1 'zcat'