#!/bin/bash


  # setup directory structure
mkdir -p TmpDir/NestDir TmpDir/aDir/anotherDir
cd TmpDir
touch rock roll
touch NestDir/aFile
touch aDir/anotherDir/anotherFile

  # setup archives
tar -c -W -f backup.tar rock roll aDir
tar -c -W -f anotherArchive.tar NestDir

  # now try and append anotherArhive.tar to backup.tar and...
tar -r -W -f backup.tar anotherArchive.tar 

  # verify that it worked and...HAY, where did the contents of backup.tar go?!
tar -t -f backup.tar
