$ echo "contents of file1">file1 $ echo "contents of file2">file2 $ echo "contents of file3">file3 $ echo "contents of file4">file4 $ tar cf parent.tar file? $ rm -f file? $ perl temp.pl $ tar xfv child1.tar file1 file2 $ cat file? contents of file1 contents of file2 $ tar xfv child2.tar file3 file4 $ cat file? contents of file1 contents of file2 contents of file3 contents of file4