The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-22-2008
nmalencia nmalencia is offline
Registered User
 

Join Date: Feb 2008
Posts: 4
Extracting from a tar file

Can I extract files from an archive file (tar), where the filename includes the full directory path, to a different directory?

For example the archive files may have a filename of
/SrcFiles/XXX/filename.dat
and I want to extract it to /SrcFiles/YYY/filename.dat. Since the archive file was created on another server, the /SrcFiles/YYY directory does not exist on the server I want to extract it to.

I understand I could create this directory temporarily on the target server, but there are reasons why I can not do that. Do I have any other options?
Reply With Quote
Forum Sponsor