The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to search for text within compressed file HLee1981 UNIX for Advanced & Expert Users 8 09-06-2007 06:50 AM
Search first line of compressed file cbreiner UNIX for Advanced & Expert Users 1 09-05-2007 05:52 PM
Check if file compressed or not badg3r Shell Programming and Scripting 4 09-14-2006 04:58 AM
renaming a compressed file to filename without .Z bruceps UNIX for Dummies Questions & Answers 8 08-16-2005 02:32 AM
Import data from compressed file ap_gore79 Shell Programming and Scripting 4 06-18-2004 01:39 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-19-2008
bobprabhu bobprabhu is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 34
Smile Is it possible to see the content of the compressed file?

How we can view the content of the file,if it compressed (or) Zipped ,without uncompress ?

I have one file ,i compressed it,without uncompressing the file.Is it possible to see the content of the file?
  #2 (permalink)  
Old 06-19-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Some tools such as less will allow you to inspect the contents of some compressed files without explicitly decompressing them. Of course, behind the scenes, it is extracting the compressed data to a temporary location.
  #3 (permalink)  
Old 06-19-2008
spirtle spirtle is offline
Registered User
  
 

Join Date: Jun 2008
Location: Scotland
Posts: 150
As era explains, the answer is no, not really, but you might be able to get a similar effect by uncompressing to stdout.
For a file in a zip archive, try unzip -c .
For compressed files, try gunzip -c or equivalently gzip -dc or zcat.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0