diff options
author | Patrick Simianer <p@simianer.de> | 2017-11-08 15:16:51 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2017-11-08 15:16:51 +0100 |
commit | 958cb01d544a3f6cbde26498d7299b52f8c0fca9 (patch) | |
tree | 11a8aabe9d658436ba0466d8cc452d3c15e0ce83 /de-sgm | |
parent | ad608fa35786063f050d5c1e0039fdb2eccdeabd (diff) |
de-sgm: use egrep instead of grep for compat.
Diffstat (limited to 'de-sgm')
-rwxr-xr-x | de-sgm | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,7 @@ #!/bin/sh -grep -v "^[[:space:]]*(<\?xml.*\?>|</?(mteval|doc|srcset|refset)[^>]*>)[[:space:]]*$" | grep -v "^[[:space:]]*<(url|description|keywords|talkid|title)>.*</(url|description|keywords|talkid|title)>[[:space:]]*$" | sed "s|<seg[^>]*>\s*||" | sed "s|\s*</seg>$||" + +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>$||" |