Bye Bye Moore

猫マンション建築の野望を胸に零細事業主として資本主義の荒波に漕ぎ出したアラサー男の技術メモ

AWKでRSSデータを扱うときには「myrss」を使うと便利

導入

$ wget http://lawker.googlecode.com/svn/fridge/lib/awk/myrss.awk

使い方

$ gawk -f myrss.awk --source 'BEGIN {  print "<ul>"; print myrss("rss;lawker.bl
ogspot.com/feeds/posts/default?alt=rss;5","<li>\n"); print "</ul>" }'
<ul>
<a href="">Mar 01</a>Michael Sanders demos an X-windows GUI for AWK.</descriptio
n<li>
<a href="">Mar 01</a>Awk100#24: A. Lahm and E. de Rinaldis&#39; patent search, i
n AWK</description<li>
<a href="">Feb 28</a>Tim Menzies asks this community to write an AWK cookbook.</
description<li>
<a href="">Feb 28</a>Arnold Robbins announces a new debugger for GAWK.</descript
ion<li>
<a href="">Feb 28</a>Awk100#23: Premysl Janouch offers a IRC bot, In AWK</descri
ption
</ul>