#!/bin/bash # EXTRACTION SCRIPT # save on file the initial volume number echo 1 >number # execute the "change-volume" script a first time ./tar-multi-volume-script x file # multi-volume archive extraction tar -M -F './tar-multi-volume-script x file' -xf file.tar 2>&- # remove a spurious file rm file.tar