The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
winzip compatible command topgear1000cc UNIX for Dummies Questions & Answers 1 02-27-2008 12:25 PM
uncompress of PKZIP files on HPUX srinivas_paluku HP-UX 3 06-18-2007 02:13 PM
PKZIP on AIX mgirinath Shell Programming and Scripting 3 03-14-2006 02:12 PM
winzip.exe virus attack thaduka Security 1 02-05-2006 09:01 AM
uncompress pkzip files Wing m. Cheng UNIX for Dummies Questions & Answers 2 10-22-2001 11:06 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-26-2008
Registered User
 

Join Date: Feb 2008
Posts: 13
gzip compatibility with WinZip/PKZIP

I have 4 files in a dir ,
A_to_Z.txt
Z_to_A.txt
1_to_20.txt
20_to_1.txt
I want to create a single gzip file which will contain these 4 text files. This gzip file should be compatible with Windows PKZIP/WinZip. I know you will suggest 'tar' command. But PKZIP/WinZip dont recognize zipped tar files seems. Please help me in this.

Thanks,
kanu_kanu
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-26-2008
Registered User
 

Join Date: Nov 2007
Location: Pune
Posts: 19
use zip command
zip <filename>.zip A_to_Z.txt Z_to_A.txt 1_to_20.txt 20_to_1.txt
Reply With Quote
  #3 (permalink)  
Old 02-26-2008
Registered User
 

Join Date: Feb 2008
Posts: 13
i forgot to mention the platform . I need it in HP-UX. It wont have "zip"
Reply With Quote
  #4 (permalink)  
Old 02-26-2008
robotronic's Avatar
Can I play with madness?
 

Join Date: Apr 2002
Location: Italy
Posts: 370
Gzip can compress only one file at a time because it's a compressor, not a packaging utility. Because of this, if you want to put together many files you have to tar them and then gzip the output tarfile.

So you can:
1) Install and use "zip" utility on your source machine
2) Use tar, gzip and install an appropriate utility on the Windows machine
3) Compress each single file with gzip
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0