blob: ffab989a8392250a1235da5d2f0f44f34a8a2a51 (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
egrep -v "^[[:space:]]*(<\?xml.*\?>|</?(mteval|doc|srcset|refset)[^>]*>)[[:space:]]*$" \
| egrep -v "^[[:space:]]*<(url|description|keywords|talkid|title)>.*</(url|description|keywords|talkid|title)>[[:space:]]*$" \
| sed "s|<seg[^>]*>\s*||" | sed "s|\s*</seg>$||"
|