download - Using wildcards in wget or curl query -
is possible use wildcards in wget queries when downloading directories? basically, have site, say, www.download.example.com/dir/version/package.rpm
. howevery, version directory changes time , contains multiple rpm packages. there single wget query me , packages in version
directory without knowing version is? in ideal world, query like:
wget www.download.example.com/dir/*/*.rpm
if there way curl
, work well.
you can't use wildcards in wget
-a
flag should work. wget manpage:
you want download gifs directory on http server. tried
wget http://www.server.com/dir/*.gif
, didn't work because http retrieval not support globbing. in case, use:wget -r -l1 --no-parent -a.gif http://www.server.com/dir/
edit: found related question
regarding directories:
there's utility called lftp
, has support globbing. take @ manpage. there's question on linux & unix covers usage in scenario similar yours.
Comments
Post a Comment