summaryrefslogtreecommitdiff
path: root/de-sgm
blob: fa28301ddbad323e9ab3f3a807b0e9fd3715d16c (plain)
1
2
3
4
#!/bin/sh

grep -v -P "^[[:space:]]*(<\?xml.*\?>|</?(mteval|doc|srcset|refset)[^>]*>)[[:space:]]*$" | grep -v -P "^[[:space:]]*<(url|description|keywords|talkid|title)>.*</(url|description|keywords|talkid|title)>[[:space:]]*$" | sed "s|<seg[^>]*>\s*||" | sed "s|\s*</seg>$||"