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
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.
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