I have a txt file: gcc-4.7.2.txt : with the data written: Hello This is a test file. Thanks :compressed as gcc-4.7.2.tar.bz2
Now, I run the following code:
If you uncompress the compressed tar archive, you get a tar archive!
Tar archive format is described here: https://en.wikipedia.org/wiki/Tar_(computing)#File_format
To show how that works, try this instead:
dev4@sun-desktop:~/readerwriter$ ./test1 | tar x
to extract the files