Can wget
be used to goto a site and piped into a .gz
extrated command?
wget ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh37 | gunzip -d clinvar_20150603.vcf.gz
Can wget
be used to goto a site and piped into a .gz
extrated command?
wget ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh37 | gunzip -d clinvar_20150603.vcf.gz
wget is not doing what cat or echo does - it is not writing to stdout in this case.
I'm not sure about this - I have an old version of wget which does not support this kind of thing
The - character is usually translated to mean stdout in the context I'm using it. I cannot test this so I cannot say it works. Piping into gunzip as shown below does work. So, -O -
means output document to the file named "-" which ought to be stdout.
wget -O - ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh37 |
gunzip -c > localfilename