#!/bin/sed -nf # fetches list of themes from gaim site, outputs simple parseable text for # companion .sh script here # this is my first attempt to parse html in sed # so don't expect much. # 2005-02-06, glen@alkohol.ee /
/,/<.div>/{ //,/<.tr>/{ //,/<.td>/ { # remove the cell tags s,^[\t ]*,,; s,$,,; # icon s,,Icon: \1, p # name n /\(.*\)<.a><.td>/ { s,.*\(.*\),Name: \3\nURL: \1\nID: \2, } p n s,[\t]*\(.*\),Description: \1, p # version n s,[\t]*\(.*\),Version: \1, p # author n s,[\t]*\(.*\),Author: \1, p # dl-s (for completeness) n s,[\t]*\(.*\),Downloads: \1, p # mark end of this one a\ -- n n } } } # vim:ai