On 09/01/2015 01:45 AM, Steve Traylen wrote:
On 09/01/2015 08:00 AM, ToddAndMargo wrote:
Hi All,
Is there any "curl --list-only" type command for http sites,
such as this turkey:
http://releases.mozilla.org/pub/thunderbird/releases/
I can only get curl to --list-only with ftp sites.
Many thanks,
-T
Not that I know of with curl, but you can do it with lftp:
lftp http://releases.mozilla.org/pub/thunderbird/releases/ -e 'ls ;
exit' | head
cd ok, cwd=/pub/thunderbird/releases
drwxr-xr-x -- ..
drwxr-xr-x - 2004-01-13 19:14 0.1
drwxr-xr-x - 2004-01-13 19:16 0.2
Thank you!
$ lftp http://releases.mozilla.org/pub/thunderbird/releases/ -e 'ls ;
exit' 2>&1 | head | awk '{print $5}' | grep -v broken
0.1
0.2
0.3
0.4
0.5
0.6
0.7.1
0.7.2
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~