Zip Multiple files to One .zip file in AIX system

Tags
shell scripts

 
Thread Tools Search this Thread
# 1  
Old 04-26-2013
Zip Multiple files to One .zip file in AIX system

Hi
I have a requirement in unix shell where I need to zip multiple files on server to one single .zip file. I dont see zip command in AIX and gzip command not doing completely what I want.
One I do .zip file, I should be able to unzip in my local Computer.

Here is example what I want
a1.txt
a2.txt
a3.txt
output should be a.zip and when I unzip on local desktop it should be same as above a.txt,b.txt and c.txt

Please help me to resolve this
thanks in advance
# 2  
Old 04-26-2013
zip is indeed the standard and common command for this, if you don't have it, install it. gzip is definitely not the same thing.

Once you have it, you can use it like zip file.zip a1.txt a2.txt a3.txt which will create a zip file containing all the listed files. Wildcards like a*.txt ought to work.
# 3  
Old 04-26-2013
But could you please guide me the steps to install zip in AIX
I have no idea

thanks

---------- Post updated at 03:41 PM ---------- Previous update was at 02:33 PM ----------

Is there any other option without installing zip command will work? I think that involved a little hard process.

Can we do it using the same gzip command. Please let me know
thanks
# 4  
Old 04-26-2013
You asked and answered this yourself already -- gzip isn't zip. Different kinds of files. You need zip.

Unfortunately I don't know the specifics of this for AIX. I do know you'd need to find the one for your version, what exact version do you have? uname -a
# 5  
Old 04-26-2013
Version 6
# 6  
Old 04-26-2013
Quote:
not doing completely what I want
It would help it you would show what it's doing, and explain what more you want. Smilie
# 7  
Old 04-26-2013
Quote:
Originally Posted by hanson44
It would help it you would show what it's doing, and explain what more you want. Smilie
Easy -- he wants to make zip-style archives, not gzip-style streams.

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Grep a pattern from zip file which has multiple files insdie hi.villinda UNIX for Advanced & Expert Users 1 09-17-2018 10:43 AM
How can we Zip multiple files created on the same date into one single zip file.? b.saipriyanka Shell Programming and Scripting 1 01-30-2017 01:47 PM
How can we Zip multiple files created on the same date into one single zip file.? b.saipriyanka UNIX for Beginners Questions & Answers 2 01-30-2017 10:37 AM
Wanted to replace string in an .xlsx file in multiple ZIP Files vipinmaster UNIX for Advanced & Expert Users 1 09-03-2014 05:34 PM
Unzip Multiple zip files and Strip directory buggzdiq Shell Programming and Scripting 1 07-21-2014 10:46 AM
Create multiple zip files each containing 50 xml files. Rakesh Thobula Shell Programming and Scripting 6 01-16-2014 09:12 PM
Zip multiple files recursively via UNIX anou UNIX for Dummies Questions & Answers 3 02-06-2012 10:49 AM
Zip multiple files and copy to help pawannoel UNIX for Dummies Questions & Answers 3 04-05-2011 01:14 AM
How to zip file in AIX with password. multidev AIX 7 03-17-2011 12:02 AM
creating a multiple zip files pranabrana Shell Programming and Scripting 1 12-17-2010 06:42 AM
Zip a file with .zip extension. aeroticman UNIX for Dummies Questions & Answers 1 08-04-2010 02:54 PM
ZIP multiple files and also specify size of zip file tom007 AIX 1 03-16-2010 03:29 AM
How to write bash script to explode multiple zip files siegfried Shell Programming and Scripting 3 02-07-2009 09:54 PM
unzip .zip file and list the files included in the .zip archive oracledev UNIX for Dummies Questions & Answers 5 04-08-2008 05:49 PM