User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 391,914 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,729 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
Views: 387 | Replies: 3 | Solved
Reply
Join Date: Aug 2007
Posts: 27
Reputation: skelly16 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
skelly16 skelly16 is offline Offline
Light Poster

Compressing a gzip file (.gz)

  #1  
Jul 3rd, 2008
Hi All

Anyway of compressing a gzip file down evern further.

I have a file which is already compressed by gzip but is till to big to email.

Any ideas how to make it even smaller???
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2006
Posts: 1,360
Reputation: masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough 
Rep Power: 8
Solved Threads: 117
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Virtuoso

Re: Compressing a gzip file (.gz)

  #2  
Jul 3rd, 2008
Not that I think you'll win much, but did you use the -9 option when you created the gzip file?

Otherwise, split and join.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Join Date: Aug 2007
Posts: 27
Reputation: skelly16 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
skelly16 skelly16 is offline Offline
Light Poster

Re: Compressing a gzip file (.gz)

  #3  
Jul 3rd, 2008
Hi

The problem is that the file comes in already gzip, unless i could get my script to uncompress then gzip -8 filename again??
Reply With Quote  
Join Date: Feb 2006
Posts: 1,360
Reputation: masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough 
Rep Power: 8
Solved Threads: 117
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Virtuoso

Re: Compressing a gzip file (.gz)

  #4  
Jul 3rd, 2008
Of course you can (and it is -9), but it's not worth it if you don't know whether or not it was already used. use split and mail it in pieces, then use join to recreate the file at the other end.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Shell Scripting Marketplace
Thread Tools Display Modes

Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 8:02 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC