[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Help-tar] Amending contents of absolute-path tar files without extr
From: |
Nick Lewis |
Subject: |
RE: [Help-tar] Amending contents of absolute-path tar files without extracting to root dir |
Date: |
Wed, 13 May 2009 09:33:05 +0100 |
Sergey
Thank you very much for the solution. In the meantime I have downloaded
the source and added an option to my local copy of tar:
-Q, --make-absolute add leading `/'s to file names to make them
absolute
I will probably continue to use this option because it is slightly
easier for me to remember and I do not want to feel my effort in adding
the option was wasted. However in the light of your response I will not
be submitting a patch with this new option.
Best Regards
Nick
-----Original Message-----
From: Sergey Poznyakoff [mailto:address@hidden
Sent: 12 May 2009 19:47
To: Nick Lewis
Cc: address@hidden
Subject: Re: [Help-tar] Amending contents of absolute-path tar files
without extracting to root dir
Nick Lewis <address@hidden> ha escrit:
> I have tars that contain files with absolute paths and wish to
replace
> some of the files. However I do not wish to extract all the files
into
> the root directory as this will adversely affect operation of my
> computer. Therefore I wish to extract the files to a subdirectory,
make
> the desired replacements and tar it all up again with the
> paths appearing as before.
Use the --transform option, e.g.:
tar -cf archive.tar --transform s,^,/, *
Or, if tarring the entire directory:
tar -cf archive.tar --transform s,^\.,, .
For a detailed description of that option, refer to
http://www.gnu.org/software/tar/manual/html_node/transform.html#IDX380
Regards,
Sergey
______________________________________________________________________
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. For more information on a proactive anti-virus
service working around the clock, around the globe, visit:
http://www.star.net.uk
______________________________________________________________________
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre.
_____________________________________________________________________
Disclaimer of Liability
ATL Telecom Ltd shall not be held liable for any improper or incorrect use of
the information described and/or contained herein and assumes no
responsibility for anyones use of the information. In no event shall ATL
Telecom Ltd be liable for any direct, indirect, incidental, special,
exemplary, or consequential damages (including, but not limited to,
procurement or substitute goods or services; loss of use, data, or profits; or
business interruption) however caused and on any theory of liability, whether
in contract, strict liability, or tort (including negligence or otherwise)
arising in any way out of the use of this system, even if advised of the
possibility of such damage.
Registered Office: ATL Telecom Ltd, Fountain Lane, St. Mellons Cardiff, CF3 0FB
Registered in Wales Number 4335781
All goods and services supplied by ATL Telecom Ltd are supplied subject to ATL
Telecom Ltd standard terms and conditions, available upon request.