Re: lining up the columns in index/monitor
[email protected] Fri, 22 Jun 2007 11:03:00 +0800
| Newsgroups | gmane.network.wwwoffle.user |
|---|---|
| Message-ID | <[email protected]> |
Never mind, instead check out my brilliant script,
http://jidanni.org/comp/wwwoffle/wwwoffle-monitor-order
Output looks like:
Next Last Monitored page
04d14h 023d03h http://wikimania2007.wikimedia.org/wiki/Team_and_Volunteers
05d14h 004d04h http://pinyin.info/news/
07d14h 352d06h http://www.gsdi.org/
08d14h 007d04h http://www.ogleearth.com/
And the script is a mere
echo "Next Last Monitored page"
lynx -width=3333 -dump -nolist http://localhost:8080/index/monitor?sort=none|
perl -nwe 'if(/\[L=(\d+):?(.*);N=(.*):(.*)\] (.*)/){
printf "%02dd%02dh %03dd%02dh %s\n",$3,$4,$1,$2 eq "+"?99:$2,$5}'|sort