unpack 'tar' but change directory name to extract to

Posted by Felipe Alvarez on Super User See other posts from Super User or by Felipe Alvarez
Published on 2010-05-30T00:32:48Z Indexed on 2010/05/30 0:42 UTC
Read the original article Hit count: 274

Filed under:
tar -tf filename.tar
folder1/file
folder1/name
[...]

I'd like to extract file and name to, folder2. Can this be done as a one-liner?

© Super User or respective owner

Related posts about tar