Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a .Z file (Compression)

Status
Not open for further replies.

Realign

IS-IT--Management
Mar 12, 2005
42
0
0
US
Please forgive me, I am unfamiliar with the Unix world. I have a directory which stores .Z files. I can open these files, and search for what I need, but I am lost when it comes time to make them a .Z file again. The compress command doesn’t work, and gzip changes the name to gz.Z. I know its just a silly command I am missing. Can you please help?

200712020000.std.Z
200712020000.Z
200712030000.std.Z
200712030000.Z
200712040000.std.Z
200712040000.Z
200712050000 <-- This is the file I need to convert back to a .Z file.
200712050000.std.Z

001: /usr/sbc/data_sent $ compress 200712050000
ksh: compress: not found
 
Perhaps it's not in your path? As far as I know it should be /usr/bin/compress. You could try the full path:

/usr/bin/compress 200712050000

HTH.

I want to be good, is that not enough?
 
Sorry - that's based on Solaris 8. You could try:

find / -name compress to check where yours is.

I want to be good, is that not enough?
 
200712050000
find: compress: No such file or directory
xe08aux001: /usr/sbc/data_sent $

I am just batting zero. :)
 
This raises an interesting question - how did they get compressed in the first place - and how are you uncomressing them? What command do you use to 'open' the file?

Ceci n'est pas une signature
Columb Healy
 
What version of Unix?

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top