OUTPUT: INCREMENT 1 example/ example/file1.txt INCREMENT 2 example/ example/file1.txt example/file2.txt EXTRACTING INCREMENT 1 CONTENTS OF INC 1 example/file1.txt data1 EXTRACTING INCREMENT 2 CONTENTS OF INC 2 example/file2.txt example/file1.txt data2 newdata1 RAW DATA: + ED=example + '[' -d example ']' + mkdir example + echo data1 + echo INCREMENT 1 INCREMENT 1 + tar -jcvg example.snar -f example.tbz2p1 example tar: example: Directory is new example/ example/file1.txt + echo INCREMENT 2 INCREMENT 2 + echo newdata1 + echo data2 + tar --remove-files -jcvg example.snar -f example.tbz2p2 example example/ example/file1.txt example/file2.txt + echo EXTRACTING INCREMENT 1 EXTRACTING INCREMENT 1 + tar xf example.tbz2p1 + echo CONTENTS OF INC 1 CONTENTS OF INC 1 + find example -type f example/file1.txt + Files=(`find $ED -type f`) ++ find example -type f + for F in "${Files[@]}" + cat example/file1.txt data1 + echo EXTRACTING INCREMENT 2 EXTRACTING INCREMENT 2 + tar xf example.tbz2p2 + echo CONTENTS OF INC 2 CONTENTS OF INC 2 + find example -type f example/file2.txt example/file1.txt + Files=(`find $ED -type f`) ++ find example -type f + for F in "${Files[@]}" + cat example/file2.txt data2 + for F in "${Files[@]}" + cat example/file1.txt newdata1 + '[' -d example ']' + rm -r example + rm example.snar example.tbz2p1 example.tbz2p2