pax

replace a path during extraction

Assume you have a tar file which contains this file:

$ tar tzf test.tar.gz 
/bin/mount

And you do not want to unpack it at this location but in the current directory, then use

$ zcat test.tar.gz | pax -pe -s :/bin/:./: -r

and voila, the mount binary is in your current directory.

 
harry/pax.txt · Last modified: 2004/09/03 15:04 (external edit)
Locations of visitors to this page

 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki