Penguin

Differences between version 6 and revision by previous author of zcat(1).

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 6 Last edited on Sunday, October 13, 2002 3:22:29 pm by zcat(1) Revert
Older page: version 3 Last edited on Monday, September 9, 2002 11:43:18 pm by PerryLorier Revert
@@ -568,4 +568,13 @@
  $ 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..  
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.