curl-users
Feature Request
Date: Mon, 29 Oct 2001 13:42:14 -0800 (PST)
I'm fairly new to Curl, but I've found it to be quite a bit more flexible than
WGET. However, I'd like to request a feature. I'd like a mechanizm for
renaming a downloaded file if the output file already exists.
For example, something like this
-O/--remote-name <file format>
curl -O $FILE_$### http://www.yahoo.com/index.html
This would save a series of files like this with each subsiquent call
index.html_001
index.html_002
index.html_003
Some other useful file formats might be
$#### - a sequential number based on prexisting files in the directory
$DATE - current date
$TIME - current time
$HOST - current hostname
$PATH - path to the file for example, path to
http://curl.haxx.se/docs/manpage.html
would contain "/docs"
Anyway, keep up the good work!
--David H.
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
Received on 2001-10-29