Cómo extraer el archivo tar de stdin?
Tengo un archivo tar grande I split
. Es posible cat
y descomprimir el archivo usando pipeline.
Algo como:
cat largefile.tgz.aa largefile.tgz.ab | tar -xz
En lugar de:
cat largefile.tgz.aa largfile.tgz.ab > largefile.tgz
tar -xzf largefile.tgz
He estado mirando alrededor y no puedo encontrar la respuesta. Quería ver si era posible.
30
1 answers
Use -
como archivo de entrada:
cat largefile.tgz.aa largefile.tgz.ab | tar zxf -
Asegúrate de catarlos en el mismo orden en que se dividieron.
Si estás usando zsh puedes usar la función multios y evitar invocar a cat:
< largefile.tgz.aa < largefile.tgz.ab tar zxf -
O si están en orden alfabético:
<largefile.tgz.* | tar zxf -
50
Author: Thor,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-06-10 09:41:12
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-06-10 09:41:12