سؤال

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?

هل كانت مفيدة؟

المحلول

Try

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

Read more the wget documentation.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top