Differences between version 10 and predecessor to the previous major change of zcat(1).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
| Newer page: | version 10 | Last edited on Thursday, April 15, 2004 9:30:19 am | by AristotlePagaltzis | Revert |
| Older page: | version 3 | Last edited on Monday, September 9, 2002 11:43:18 pm | by PerryLorier | Revert |
@@ -1,4 +1,8 @@
+__Note:__ "zcat" is also the nickname of BruceKingsbury.
+
+-----
+
GZIP
!!!GZIP
NAME
SYNOPSIS
@@ -560,12 +564,20 @@
permission notice may be stated in a translation approved by
the Foundation.
----
!!user comments
-see also http://zcat.themall.co.nz/
-And I have a bit of a blog where I rant about things that are bothering me, which lately tends to be mostly the perpetual extension of copyright. You can read that at http://zcat.themall.co.nz/blog.html
+
someone was searching for examples for zcat, so well, why disappoint?
$ ls
interestingfile.txt.gz
$ zcat interestingfile.txt.gz
this is a compressed interesting text file
+
+For the examples above I'd probably use zless, since if a textfile was worthy of being compressed it's likely to have been very large to begin with.
+
+There aren't many places where 'zcat' is the shortest command for the job. Eg. "zcat foo.tgz | tar x" is probably better done by the command "tar xzf foo.tgz"
+
+Probably the best example I can think of would be;
+ $ zcat patch-x.y.z.gz | patch -p0
+
+Patches are usually compressed, and patch(1) doesn't have a 'compressed' switch like tar(1) does..
