summaryrefslogtreecommitdiff
path: root/de-sgm
blob: 664c18c963ef807e39e8719f9c57281009698789 (plain)
1
2
3
4
5
6
7
#!/bin/sh


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