If I have a bziped tar file split over multiple dvd's what's the best way of extracting it without creating a lot of intermediate files? I don't want to first copy all the archive parts to an intermediate disk.
so far the best I can come up with is
mkfifo temppipe1 mkfifo temppipe2 ... mkfifo temppipen cat temppipe* | bunzip2 |tar -xvf -
dd if=archive.tar.bz_part1 of=temppipe1 .... dd if=archive.tar.bz_partn of=temppipen
This works, allowing me to change the dvd after each dvd but strikes me as potentially creating a lot of named pipes, and potentially error prone. One typo in terminal 2 and tar is going to quit leaving no option but to start again. It's also essential to create enough names pipes at the beginning
Anyone got any better ideas?