Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Redirect / Pipe wget download directly into gunzip [closed]

Tags:

linux

gunzip

I want to download and to gunzip file.

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

Works fine.

However I want to simplify such command and tried this:

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

wget downloads file, but gunzip task doesn't start.

Where is my mistake?

like image 491
pogibas Avatar asked Apr 28 '13 12:04

pogibas


1 Answers

Try

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

Read more the wget documentation.

like image 75
Basile Starynkevitch Avatar answered Nov 04 '22 23:11

Basile Starynkevitch