Cory Petkovsek wrote,
>The tar's vary across versions of unix as well.
>
>There are some cool shortcuts with linux's tar, like using sdtin/stdout:
>
>bzcat kernel.tar.bz2 | tar x
>
>This works on linux. However the tar on SunOS 5.8 (UofO CS dept) won't
>work with stdin. (At least I haven't figured out how to do it.) To get
>the same result as above, I have to do this:
>
>bzcat kernel.tar.bz2 > kernel.tar ; tar xf kernel.tar && rm kernel.tar
As far as I know, all versions of tar accept the filename "-" to mean stdin.
Thus you can say
bzcat kernel.tar.bz2 | tar xf -
and avoid having the intermediate uncompressed .tar file lying around.
This works with every version of tar I've ever tried, including Linux and
SunOS. I used to use this trick quite often on various dialects of Unix
where tar didn't recognize the "z" flag.
- Neil Parker, [EMAIL PROTECTED]