[plug] re; untar to directory

James Devenish devenish at guild.uwa.edu.au
Wed May 7 08:14:40 WST 2003


In message <seb7eb4f.088 at mmtnetworks.com.au>
on Tue, May 06, 2003 at 05:05:16PM +0800, Jon  Miller wrote:
> Is there a way to strip off the /mnt/hdd?

For all the non-standard features that GNU tar has, it also seems to be
missing several relating to filename handling (several other popular
operating systems have either incorporated pax features or supplied pax,
in addition to whatever non-standard features they have). If your tar
does not have regex subtitution, perhaps you have a version of pax for
your operating system. E.g.

    pax -r -s ./mnt/hdd.. -f blah.tar

(And specify -k if you don't want to overwrite files.)




More information about the plug mailing list