ZIP


Introduction:

ZIP
is a program for the lossless compression or uncompression
of data.

Reference:

Usage:

On any ARC cluster, the ZIP program should be in the user's path.
It is installed as /usr/bin/zip.

Examples:

In the following batch file, we compress and decompress a file,
and compare its size to the original.

#! /bin/bash
#
#PBS -l walltime=00:05:00
#PBS -l nodes=1:ppn=1
#PBS -W group_list=newriver
#PBS -q open_q
#PBS -j oe

cd $PBS_O_WORKDIR

cp robinson_crusoe.txt robinson_crusoe2.txt
zip robinson_crusoe.zip robinson_crusoe2.txt
rm robinson_crusoe2.txt
unzip robinson_crusoe.zip

A complete set of files to carry out a similar process are available in
zip.tar