Jimilian
Jimilian

Reputation: 3919

Is it possible to save data to file using pipe and unzip it in same time?

I'm trying to construct something like:

wget -qO- $source | <save_to_file> | <read_from_file> | tar -xzvf -

Main idea is to download original file and extract it in parallel.

Upvotes: 1

Views: 72

Answers (1)

user184968
user184968

Reputation:

wget -qO- $source | tee copy.tar.gz | tar -xzvf -

Upvotes: 4

Related Questions