can wildcards be used with ftp downloads?

Linux for blind general discussion blinux-list at redhat.com
Sat Oct 28 21:00:22 UTC 2017


Some FTP clients support an "mget" ("multiple get") command that
would allow a wildcard spec:

  $ ftp example.com
  ftp> cd /pub
  ftp> mget *.zip

Sometimes the client prompts you for each file with some sort of

  Do you want to download foo.zip? (Y/n)
  Do you want to download blah.zip? (Y/n)

which can be somewhat annoying.  You should be able to toggle it with
the "prompt" command.  It's also subject to the "glob" setting which
either takes the "mget" arguments literally:

  ftp> mget foo.zip blah.zip

or as globs (as in my initial example).

There may also be a "case" toggle depending on the case-sensitivity
that you want.

Hope that helps,

-Tim

On October 28, 2017, Linux for blind general discussion wrote:
> By which I mean can I run the command in a specific directory where
> I really   want to do this like...
> get *.mp3
> and download all of the mp3 files in a specific folder?
> I know I would change to the directory first,  I just want to
> gather all of the files in this way.
> possible?
> Thanks,
> Karen
> 
> 
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list




More information about the Blinux-list mailing list