Please state what Operating System and version you are using and what Shell you prefer.
First use the "file" command to enquire what sort of file this is:
By convention ".Z" files have been compressed with the unix "compress" utility.
To read the file if it is a compressed text file:
To uncompress the file (and change its filename to not have the .Z):
I'm getting curious about making some of my own commands. I know this is realtively easy with script files and combining various unix standard commands. Is there a way to view the code that is used for these standard commands..i.e. how do I see what code is used for the 'join' command.
I'm... (2 Replies)
Hi,
Im newbie here and in unix as well. How can i view users in unix? Im viewed them in shadow file (i typed: vi /etc/shadow) but some unix (im confused if its unix or linux or bsd, but i think it has a little thing in common or differnce) has no shadow file?! What must i do to view the users... (6 Replies)
I am new to unix. I want to know if there is any tool or plugin available for AIX unix system through which a user can see the TIFF images. Below are the details:
Our application runs on AIX Unix box. The users log in to the application through telnet clients running on Windows 2000/XP systems.... (1 Reply)
How do you view Drive/RAID configuration in UNIX?
We are running an ML370 with 6 drives in it...
Version: Sco 5.2.0
Sco Openserver Release 5 (2 Replies)
Guys,
Could anyone let me know, how we can see the contents of .tar file without extracting it.
I know the extracting and combine options
Regards (3 Replies)
Hi !
I have a FTP site, where I softlinked my server log file.
Now I want to view the logs in IE as I do in unix
Some kind of free tool should be there, Can somebody provide me a pointer.
Thanks. (0 Replies)
Discussion started by: dashok.83
0 Replies
LEARN ABOUT POSIX
zgrep
ZGREP(1) General Commands Manual ZGREP(1)NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code:
(-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the
standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.
EXIT CODE
2 - An option that is not supported was specified.
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)ZGREP(1)