How to create a zip file inHPUX 11I v3

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

Is the following recommend?

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

    Expert Comment

    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

    Im using HPUX 11i v3
    LVL 40

    Accepted Solution

    Do you have these commands (compress , zip, gzip) on your system? you can try!

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    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…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now