question about TAR

Ouattara Oumar Aziz (alias wattazoum) wattazoum at gmail.com
Sat Dec 1 11:43:11 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Felipe Figueiredo a écrit :
> Em Thursday 29 November 2007 20:14:18 Ouattara Oumar Aziz (alias wattazoum) 
> escreveu:
>> Hello
>>
>> I would like to know if it's possible to transfer a file from one tar
>> archive to another (without untarring it on the disk)
>>
>> For example , I have a 2GB dir in a TAR archive and I want to transfer a
>> subdir of 1GB to another TAR file. I don't have 1GB free on my disk .
>> Can Tar handle this ?
>>
> 
> have you tried this?
> 
> tar xf archive1.tar relative/path/to/file | tar rf \
>  archive2.tar -
> 
>
Hello, Just tried :

:~$ tar xf Document.tar Documents/WATTAZOUM.tar.gz | tar rf video.tar -
tar: -: ne peut stat: Aucun fichier ou répertoire de ce type
tar: Statut d'erreur reporté d'erreurs précédentes.

I had seen this kind of command but it was for transfering files from
one tape to another.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHUUjP3oNqSZ7gEVoRAsvSAJ9sKF4+YSaAxxLxSyneuyQME0OnSgCg1ZMi
CVACgI3Hixjnp3pf1m/SI6s=
=MeYy
-----END PGP SIGNATURE-----





More information about the ubuntu-users mailing list