Return to Snippet

Revision: 2203
at January 15, 2007 14:30 by micmath


Initial Code
$ pax -w -s,/full/path/A,/full/path/B, -f /tmp/files.tar /full/path/A
$ tar -tf /tmp/files.tar
  /full/path/B
  /full/path/B/lib
  /full/path/B/lib/bar.txt
  /full/path/B/foo.txt

Initial URL


Initial Description
I want to tar up files in directory A, but have them extract into directory B when they are untarred.

Initial Title
Untar into a different directory

Initial Tags


Initial Language
Bash