Pergunta

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?

Foi útil?

Solução

Try

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

Read more the wget documentation.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top