SCIENTIFIC-LINUX-USERS Archives

September 2015

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
ToddAndMargo <[log in to unmask]>
Reply To:
ToddAndMargo <[log in to unmask]>
Date:
Tue, 1 Sep 2015 10:32:14 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ATOM RSS1 RSS2