The in the example command above would grab all four quarters in one year, but I'd be fine with just getting one quarter at a time, and I've tried replacing 1 as well. I want to do this for all quarters, so I need a way to write the command for each quarter so that I can loop over them. To clarify exactly what I'm trying to do: The Chicago Fed website lets you enter a year and quarter, and you click 'Download data file' and it gives you a. Is there a straightforward way to do this? The command above is in fact provided in the documentation by the Chicago Fed, and yet it throws error messages on my Ubuntu machine: curl: option -klo: is unknown. The first thing I tried was this: curl -klo '.\bhcdata#1.zip' '' I've been somewhat blindly trying lots of variations of curl and wget to try downloading some.