[PLUG] Download All Specified Files From Website

Michael Rasmussen michael at jamhome.us
Fri May 25 18:26:25 UTC 2012


On 2012-05-25 08:03, Rich Shepard wrote:
> [rshepard at salmo /opt]$ wget -r -A t?z -nH --cut-dirs=1
> http://connie.slackware.com/~alien/multilib/13.37/
>
>    Please tell me what that command line should be to get only the 
> *.t?z
> files in the ../13.37/ directory and the compat32/ subdirectory.

First, from the wget man page:

   -A acclist --accept acclist
   -R rejlist --reject rejlist
      Specify comma-separated lists of file name suffixes or patterns to 
accept or reject. Note that if any of the wildcard
      characters, *, ?, [ or ], appear in an element of acclist or 
rejlist, it will be treated as a pattern, rather than a suffix.

Since you use t?z your acclist will match any file with 
t<anycharacter>z in the name.
This matches 36 files in the directory you're searching.  These include 
*txz.asc *txz.md5 *txz and *tgz

 From your description of what you wish to do this is not the file list 
you're trying to match.

Scanning the directory listing it seems you only want *tgz and *txz 
files.

-- 
      Michael Rasmussen
    http://www.jamhome.us/
Be Appropriate && Follow Your Curiosity



More information about the PLUG mailing list