#!/bin/sh 

# Assumes hat.txt exists in the current directory.


# Expecting filename.tar.gz  .
# Uncompress and extract archive.
function revbackup
{
  #echo ${1}
  gunzip ${1}
  tar -xf ${1%.*}
  #echo ${1%.*}
}

cp hat.txt hat2.txt

tar -cvzf archive02.tar.gz hat2.txt

rm hat2.txt

revbackup archive02.tar.gz

