Portál AbcLinuxu, 10. května 2025 22:42
man wget
Jen bych upozornil na rozdíl mezi stahováním přes ftp a http.
postgresql-*.rpm
jednoduše vrátí soubor se stejným názvem (anebo spíše error 404 You want to download all the GIFs from a directory on an HTTP server. You tried wget http://www.server.com/dir/*.gif, but that didn't work because HTTP retrieval does not support globbing. In that case, use: wget -r -l1 --no-parent -A.gif http://www.server.com/dir/ More verbose, but the effect is the same. -r -l1 means to retrieve recursively, with maximum depth of 1. --no-parent means that references to the parent directory are ignored, and -A.gif means to download only the GIF files. -A "*.gif" would have worked too.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.