Sponsored Content
Top Forums Shell Programming and Scripting To view .gz files without decompressing it Post 302234611 by ali560045 on Wednesday 10th of September 2008 02:13:40 AM
Old 09-10-2008
thanks gunzip -c is working
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

view log files

i have this unix version "unix v/386" and i want to view the log files how i can do it? regards (5 Replies)
Discussion started by: sak900354
5 Replies

2. Shell Programming and Scripting

View files in columns

Can some on say how in simplest way to implement the following: I have two files: 1) some some some 2) another another another I need to get third file: 3) some another some another some another (1 Reply)
Discussion started by: mirusnet
1 Replies

3. UNIX for Dummies Questions & Answers

To view compressed files

Hello All I compressed a file hello by using compress command compress hello ( enter ) i got the file as hello.z 1. My question is how can i see the file hello.z 2. How can i uncompress it back to change it to filename hello thanks (4 Replies)
Discussion started by: supercops
4 Replies

4. OS X (Apple)

Decompressing Tar Archives (Finally!)

If you've come across this problem with unzipping/decompressing zips, you might find this helpful: I was having a little trouble with unzipping (decompressing) tarred archives under OS 10.5 until today. My first attempt was to just simply double-click on the zip file (i.e., example.tar.gz) and... (2 Replies)
Discussion started by: unimachead
2 Replies

5. Solaris

read a compress file without decompressing it

If we have a zip file and we don't have enough space on the disk to unzip it but we want to be able to just read the file like if we can use cat without decompressing it. Is there a way we can do that? Like if we want Thanks, (1 Reply)
Discussion started by: Pouchie1
1 Replies

6. Red Hat

How to view all files on DAT tape

I'm using tar and so far so good, but how can I view ALL files without having to fast forward and rewind the tape? Let's say I append 100 files onto the tape. Having to fast forward 100 times until I find the file I want is kinda tedious. (3 Replies)
Discussion started by: sdotsen
3 Replies

7. Shell Programming and Scripting

Command to view files in Directory

Hi, Can you help me in providing me a command to view all files present in a directory. Thanks a lot. -Vamsi (1 Reply)
Discussion started by: VamsiVasili
1 Replies

8. Shell Programming and Scripting

Command to view files in Directory

Hi, Can u provide me the command to view files in a directory.Urgent Pls. -Vamsi (4 Replies)
Discussion started by: VamsiVasili
4 Replies

9. UNIX for Dummies Questions & Answers

Find Multiple Strings from a list of *.gz files withour decompressing...

Hello Team, There is this situation where there are around 20 *.gz files and i want to search multiple words from all those files. Example as below : filea.gz fileb.gz filec.gz now i want to search words "hi" and "hello" from all these 3 files without... (4 Replies)
Discussion started by: varun87
4 Replies

10. Fedora

Cannot view the files on the smartphone anymore

My current Fedora version is 27. Desktop environment is LXDE. I am trying to view files sitting on my smartphone (Sony Xperia XA ultra) but it doesn't work anymore. This used to work before. I cannot view image and mp3 files but text files and pdf files work fine. When I move the files to the local... (3 Replies)
Discussion started by: milhan
3 Replies
ns_zlib(3aolserver)					     AOLserver Zlib Extension					       ns_zlib(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
ns_zlib - Zlib compression support SYNOPSIS
ns_zlib compress string ns_zlib gunzip file ns_zlib gzip string ns_zlib gzipfile file ns_zlib uncompress string _________________________________________________________________ DESCRIPTION
The ns_zlib command enables compressing and uncompressing of strings or files. The command is available if the nszlib.so module is loaded into AOLserver or the libnszlib.so, nszlib.dll, or libnszlib.dylib dynamic library is loaded using the load command in a suitable tclsh such as nstclsh. ns_zlib compress string This command compresses the given string and returns a Tcl byte array object with the compressed data. ns_zlib gunzip file This command uncompresses the contents of the given gzipped file and returns a string as the result. ns_zlib gzipfile file This command is similar to the gzip shell routines, compressing the given file into a new file with the .gz extension. If success- ful, the original uncompressed file is deleted. ns_zlib uncompress bytearray This command takes a byte array object which includes compressed data and returns an uncompressed string object. EXAMPLES
The following examples demonstrate compressing and uncompressing a string; # Compress Tcl string set test "This is test string" set data [ns_zlib compress $test] set test [ns_zlib uncompress $data] --> returns "This is test string" # Compress the string into gzip format set gzip [ns_zlib gzip $test] # Save as gzip file set fd [open /tmp/test.gz w] fconfigure $fd -translation binary -encoding binary puts -nonewline $fd $gzip close $fd # Uncompress gzipped file set test [ns_zlib gunzip /tmp/test.gz] --> returns "This is test string" SEE ALSO
ns_adp_ctl(n), load(n) KEYWORDS
GZIP, compress, uncompress AOLserver 4.5 ns_zlib(3aolserver)
All times are GMT -4. The time now is 11:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy