How to extra several folders from a tar file to a new tar file
Say I have tar file (a.tgz) that packages folder a/
, b/
and c/
. I want to extract folders a and b into a new tar file. Is there way to archive with a pipeline, something like tar xvfz | tar cvfz
?