Redirect / Pipe wget download directly to gunzip

I want to upload and upload a file.

  wget ftp://ftp.direcory/file.gz
  gunzip file.gz

It works great.

However, I want to simplify such a command and tried this:

 gunzip <(wget ftp://ftp.direcory/file.gz)

wget loads the file, but the gunzip task does not start.

Where is my mistake?

+5
source share
1 answer

Try

  wget -O - ftp://ftp.direcory/file.gz | gunzip -c > gunzip.out

More wget documentation .

+12
source

All Articles