Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat > transform.xslt <<\EOF
- <?xml version='1.0' encoding='UTF-8'?>
- <xsl:stylesheet
- version='1.0'
- xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
- <xsl:output method='text'/>
- <xsl:strip-space elements='*'/>
- <xsl:template match='html'>
- <xsl:for-each select='body/pre'>
- <xsl:for-each select='a'>
- <xsl:value-of select='.'/><xsl:text>
</xsl:text>
- </xsl:for-each>
- </xsl:for-each>
- </xsl:template>
- </xsl:stylesheet>
- EOF
- curl -s https://users.unvanquished.net/~sweet/pkg/ \
- | xsltproc --nonet --html transform.xslt - \
- | grep -E '\.dpk$'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement