|
From: | Callahan, Brian Robert |
Subject: | RE: How find GNUAPL svn repository revision number |
Date: | Tue, 22 Sep 2020 19:48:03 +0000 |
In your script, you could use wget or curl or lynx to download that web page, then pipe it into some creative use of grep/sed/awk/perl to extract just the title, then another pipe
to another round of grep/sed/awk/perl to get just the revision number.
Untested, but something like this should be close to working:
lynx -dump http://svn.savannah.gnu.org/svn/apl/trunk/ | sed '2q;d' | awk '{ print $3 }'
You might have to play around with the sed or the awk column or something, but this should be a good first step.
~Brian
Brian Robert Callahan, Ph.D. Lecturer, ITWS@RPI
Office: Amos Eaton 132
From: Peter Teeson [peter.teeson@me.com]
Sent: Tuesday, September 22, 2020 3:33 PM To: Callahan, Brian Robert Cc: bug-apl@gnu.org Subject: Re: How find GNUAPL svn repository revision number Thanks for your reply but I don’t understand what you mean by ‘scrape that’
|
[Prev in Thread] | Current Thread | [Next in Thread] |