Re: General question
"Alexander V. Lukyanov" <[email protected]> Wed, 11 Feb 2015 09:06:15 +0300
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 10, 2015 at 08:42:07PM +0000, Michal Wiczynski wrote: > My question is if it's possible to download just one file, but using > mirror. You can mirror a single file by name (see mirror -f option). > For example I would like to download oldest file from the server > without earlier knowing its name and disconnect? You have to find the name of that file first. E.g.: cls --sort=date -rF | grep -v '/$' | head -1 > tmp-file source -e "echo mirror -f `<tmp-file`" !rm -f tmp-file -- Alexander. _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp