LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Barney Wrightson <barney.wrightson@dsto.defence.gov.au>
To : <linuxsa@linuxsa.org.au>
Date: Tue, 08 Apr 2003 11:54:43 +0930
Re: tar pipeline question...
David Lloyd wrote:
> Richard,
>
>
>>I'd somehow like to pipe the creating of all the *.log files directly
>>into the tar process...
>>
>>Any hints?
>
>
> 1) You can append to "tar" files but this can only be done to
> non-compressed ones (which might get you running out of space)
>
> 2) If you do not need to make separate files you could do something like
> this:
>
> for f in (some list) do make $f output-to-stdout; echo "DELIM" \
> done | tar czf sometar.gz -
>
> ..and then break it up using the DELIM later
>
> DSL
>
You could zip the files individualy and append them to the tar in the
loop though, but obviously you'd have to change the order of "unzip,
untar" to "untar, unzip" to reconstitute the log files.
Barney
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.freenode.net
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page