I'm trying to use wget to download all Betacoronavirus files ending in .tar.gz from https://ftp.ncbi.nlm.nih.gov/blast/db/. I can use wget and paste in the link to a single one of those files, and it will download that just fine. But when I try to use some sort of regex, e.g. something with Betacoronavirus.*.tar.gz to download them all at once for me, it doesn't work. I've tried multiple things I've seen on some other threads, but still, none work.
When you use "regex" or "glob"
Betacoronavirus.*.tar.gz on the wget command-line, it is getting executed on your local machine in your Current Working Directory.
In that Directory, there may be no such file and the "glob" is empty ; Alternatively, the Directory may contain some already downloaded file, then the "glob" may match that and try to download the same file.
Either way, that will not work.
What you require is a glob on the remote ftp machine. You can get that by using a cli ftp client.
Your best way (simple way) would be to use a gui ftp client and select the matching files and click download. I recommend WinSCP & FileZilla.
Advanced way would be to download the html source for the Directory Listing, Parse it and take out the matching files and execute wget on each matching file. I do not recommend this, given your use case.