How to create a zip file inHPUX 11I v3

Posted on 2012-08-14
Medium Priority
Last Modified: 2012-08-14
how to create a zip file in unix with a filename and date stamp?

Is the following recommend?

zip zipfile.zip.`date '+%Y%m%d`  *.doc *.txt *.pdf *.jpg
Question by:lsbrown1
  • 2
LVL 40

Expert Comment

ID: 38294778
it depends on tools available on your system. you may try

compress filename
mv filename.Z filename`date '+%Y%m%d'`


zip myzipfile.`date '+%Y%m%d'` file1 file2 file3


gzip file1 file2 file3 > mygzipfile.gz.`date '+%Y%m%d'`

Author Comment

ID: 38294784
Im using HPUX 11i v3
LVL 40

Accepted Solution

omarfarid earned 2000 total points
ID: 38294798
Do you have these commands (compress , zip, gzip) on your system? you can try!

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question