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 Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reg: Gzip sam99 Shell Programming and Scripting 5 01-30-2008 07:43 AM
tar/gzip/gz...which one to use? abhijeetkul UNIX for Advanced & Expert Users 5 03-24-2006 03:00 AM
TAR and GZIP help VandeMatram UNIX for Dummies Questions & Answers 3 03-17-2006 07:35 AM
gzip alisevA3 UNIX for Dummies Questions & Answers 2 08-12-2004 11:29 AM
gzip mfran2002 SCO 1 12-01-2003 10:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-25-2003
alan's Avatar
alan alan is offline
Registered User
  
 

Join Date: Jul 2003
Location: Los Angeles
Posts: 53
Red face GZIP help, please!

Gurus,

My own stupidity (or ignorance...or both) put me in the situation I am in and I need help please:

1-My shell account (OS: HP UX v11) contains several work directories (/docs, /scripts...)
2-Our sysadmin has implemented aggressive disk quotas so I have to compress the files I put here to avoid running out of space.
3-I decided to teach myself how to use GZIP and, w/o thinking about trying it on a "dummy" file first, I did

>gzip -v9 -S .suf *.doc

on the 50 some files on my /docs directory. My files are all now successfully compressed with a "<filename>.doc.suf" suffix.

4-How do I de-compress those now? I have tried
>gzip -d -S .suf *doc
I get "unknown suffix -- ignored" 50 times

5-Same error msg if I try
>gzip -d *.suf OR
>gzip -d -S .suf *.doc OR
>gzip -d *.doc

I put myself in this stupid situation because of my carelessness. What am I do wrong here? Which syntax should I use? PLEASE HELP!!!

Al.
  #2 (permalink)  
Old 07-25-2003
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
gzip -v9 -S .suf *.doc

says that the suffiz to use is .suf and the files to compress are *.doc. After that is finished you will have files that end in .doc.suf but for our purposes, the gzip suffix is .suf. That was a mistake, don't use -S. Let gzip pick its own suffix.

To decompess the result you need
gzip -d -S .suf <filelist>

where <filelist> is the list of files that you would like to decompress. To completely reverse what you did:
gzip -d -S .suf *.doc.suf

This may pick up a few files the were pre-existing with a name that ends in .doc.suf if you had any. But gzip will complain and move on to the next file.

And rather than "gzip -d", most of us would do "gunzip".
  #3 (permalink)  
Old 07-25-2003
alan's Avatar
alan alan is offline
Registered User
  
 

Join Date: Jul 2003
Location: Los Angeles
Posts: 53
IT WORKS! THANK YOU!

Okay, I am calm now but you have saved my behind so thank you!

Al.

Quote:
Originally posted by Perderabo
gzip -v9 -S .suf *.doc

says that the suffiz to use is .suf and the files to compress are *.doc. After that is finished you will have files that end in .doc.suf but for our purposes, the gzip suffix is .suf. That was a mistake, don't use -S. Let gzip pick its own suffix.

To decompess the result you need
gzip -d -S .suf <filelist>

where <filelist> is the list of files that you would like to decompress. To completely reverse what you did:
gzip -d -S .suf *.doc.suf

This may pick up a few files the were pre-existing with a name that ends in .doc.suf if you had any. But gzip will complain and move on to the next file.

And rather than "gzip -d", most of us would do "gunzip".
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 12:56 AM.


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