Kim Grillo ha scritto:
Does anyone know if its possible to create a single directory with the URL
name instead of a directory tree when using wget? For example, I dont want
to have to move through each directory to get to the file, I'd like the file
to be in a folder under a directory named after the URL. I also dont want
to do a recursive wget.
you'll have to use a shell script to do that. for instance, something
like this might work:
#!/bin/sh
for i
do
dirname=`echo $i | tr "\" "_"`
mkdir $i
cd $i
wget -nd $i
cd ..
done
--
Aequam memento rebus in arduis servare mentem...
Mauro Tortonesi http://www.tortonesi.com
University of Ferrara - Dept. of Eng. http://www.ing.unife.it
GNU Wget - HTTP/FTP file retrieval tool http://www.gnu.org/software/wget
Deep Space 6 - IPv6 for Linux http://www.deepspace6.net
Ferrara Linux User Group http://www.ferrara.linux.it