how to wget files in more than one folder

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
avalente
Posts: 7
Joined: Thu Apr 30, 2020 7:44 am America/New_York
Answers: 0

how to wget files in more than one folder

by avalente » Fri May 01, 2020 12:18 pm America/New_York

Great! It worked john, many thanks!

Tags:

OB ODPS - jgwilding
Subject Matter Expert
Subject Matter Expert
Posts: 139
Joined: Fri Feb 19, 2021 1:09 pm America/New_York
Answers: 0
Been thanked: 1 time

how to wget files in more than one folder

by OB ODPS - jgwilding » Sat May 02, 2020 9:09 am America/New_York

Great!  Note that you can also use the file-search API from the command line (see https://oceancolor.gsfc.nasa.gov/data/download_methods/) and then chain the wget commands so that the output of the file-search wget call becomes the input to the download wget call.  Basically the file-search API call would use -O - to send its output to stdout, and the download call would use -i - to read its input from stdin instead of the text file you used this time.  It saves the step of having to download the file URLs into a text file.

Regards,
john

Post Reply