Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: path in tar file...please help

by perlhaq (Scribe)
on Oct 11, 2007 at 00:28 UTC ( [id://644116]=note: print w/replies, xml ) Need Help??


in reply to path in tar file...please help

If the machine in question has the pax utility, you can use its -s option to manipulate the path that gets stored (and even strip it completely, leaving just each file's basename). The POSIX man page is here (your implementation may differ, but it probably won't matter for simple stuff):
http://www.opengroup.org/onlinepubs/009695399/utilities/pax.html
The "tar -C" thing will get the job done in this case, but pax is more powerful, and thus worth knowing about, IMO.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://644116]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-26 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found