[RndTbl] Unix command line challenge!
Bradford C. Vokey
brad at fsi.ca
Fri Oct 13 15:10:24 CDT 2017
Before Trevor suggests it, there is *always* a Perl module for it:
Which let's you rename the files inside a tarbal:
$tar->rename( $old_file_name, $new_file_name )
On 10/12/2017 1:10 PM, Kevin McGregor wrote:
> Is there a way to untar a tar archive to stdout and use that output to recreate the archive by piping it back into
> tar? GNU tar has a transform option to change the file names.
> Sent from my iPhone
> On Oct 12, 2017, at 10:42, Adam Thompson <athompso at athompso.net <mailto:athompso at athompso.net>> wrote:
>> On 2017-10-12 08:59, Kevin McGregor wrote:
>>> Given a gzipped cpio archive (12 GB!) with files in it like:
>>> How can I change the first component of the path to something else without unpacking the entire archive to disk
>>> first? Obviously I'll still have to un-gzip and de-cpio the whole 12GB while processing; I just don't want to put
>>> the whole thing on disk while I'm changing the path.
>>> Any ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Roundtable