
Compression saves space while storing files on your system. Compressing your files is a common practice nowadays. bhcdata$yr_$qtr.Let’s understand how you can work with, compress, and extract 7zip Files on Ubuntu. rw-r-r- 1 floris floris 2500525 Feb 13 21:12 bhcdata4.zipĪnd if you wanted multiple years, do (some variant of) #!/bin/bashĬurl -ko. Change the file to "executable" with chmod 755 downloadAll, then type. bhcdata1.zip ""īONUS to get all four quarters, you can simply put the following lines in a script. You might find you need the -k flag as well… although I didn't need to on my machine. I found a file named bhcdata1.zip in my directory when I was done: -rw-r-r- 1 floris floris 1545868 Feb 13 21:05 bhcdata1.zip

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.
