Home Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Zip Multiple files to One .zip file in AIX system

Tags
shell scripts

Login to Reply

 
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.
# 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.
Easy -- he wants to make zip-style archives, not gzip-style streams.
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Copying a file to multiple other files using a text file as input sph90457 Shell Programming and Scripting 3 03-05-2015 12:14 PM
CAT multiple files according to file name quakesrus UNIX for Dummies Questions & Answers 8 08-07-2014 11:29 AM
ksh file not found error for various files across system Chthonic AIX 6 03-19-2014 10:26 AM
Split a .csv File into Multiple Files azherkn3 Shell Programming and Scripting 2 02-03-2014 07:46 AM
How to split file into multiple files using awk based on 1 field in the file? alexyyw Shell Programming and Scripting 2 07-19-2012 04:10 AM
How to ftp multiple files by taking the file name from a input file. i.srini89 Shell Programming and Scripting 2 05-09-2012 04:45 AM
Split a file into multiple files based on first two digits of file. okkadu Shell Programming and Scripting 6 04-11-2012 06:22 PM
Columnate multiple files in one .tab file lucasvs UNIX for Dummies Questions & Answers 5 01-22-2012 08:19 PM
Splitting a file in to multiple files and passing each individual file to a command rkrish Shell Programming and Scripting 4 11-17-2011 04:29 AM
why is it workin for 1 file , but not for multiple files? somanath Patrud Shell Programming and Scripting 1 01-23-2008 07:04 AM


All times are GMT -4. The time now is 09:06 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password