|
From: | Tim Kientzle |
Subject: | Re: [Bug-tar] feature request, to pass archive file name to "--to-command" |
Date: | Wed, 24 Feb 2010 23:45:48 -0800 |
User-agent: | Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.21) Gecko/20090601 SeaMonkey/1.1.16 |
ıɥɔıɐʇ ɐʇɐqɐʍɐʞ wrote:
I would like to request one feature for "gnu tar" command. That is, passing the `extracted file name' as the first argument for the command of "--to-command" option. The reason that I would like to have this feature is to process contents of `tar' archive via pipe while its original file name keep in record.
Depending on your exact needs, you might find it simpler to use a library such as libarchive to create a custom extractor that does exactly what you want. Here are some simple examples that you can use as starting points: http://code.google.com/p/libarchive/source/browse/trunk/examples/ http://code.google.com/p/libarchive/wiki/Examples Cheers, Tim Kientzle
[Prev in Thread] | Current Thread | [Next in Thread] |