How to download a file from http url? How to download a file from http url? unix unix

How to download a file from http url?


This is what I did:

wget -O file.tar "http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file"


Use the -O option with wget, to specify where to save the file that is downloaded. For example:

wget -O /path/to/file http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file


# -r : recursive    # -nH : Disable generation of host-prefixed directories# -nd : all files will get saved to the current directory# -np : Do not ever ascend to the parent directory when retrieving recursively. # -R index.html*,999999-99999-1990.gz* : don't download files with this files patternwget -r -nH -nd -np -R *.html,999999-99999-1990.gz* http://www1.ncdc.noaa.gov/pub/data/noaa/1990/