From 7d2fd2bf643671377e990b1c944aa3650397e3da Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 9 Mar 2020 17:48:55 +0000 Subject: de-sgm: match more stuff --- de-sgm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/de-sgm b/de-sgm index 452edfe..fd4546e 100755 --- a/de-sgm +++ b/de-sgm @@ -1,10 +1,13 @@ #!/bin/sh -egrep -v "^[[:space:]]*(<\?xml.*\?>|]*>)[[:space:]]*$" \ - | egrep -v "^[[:space:]]*<(url|description|keywords|talkid|title|translator|reviewer)[^>]*>.*[[:space:]]*$" \ +egrep -v -i "^[[:space:]]*(<\?xml.*\?>|]*>)[[:space:]]*$" \ + | egrep -v -i "^[[:space:]]*<(url|description|keywords|talkid|title|translator|reviewer)[^>]*>.*[[:space:]]*$" \ | sed "s|]*>\s*||" \ | sed "s|\s*\s*$||" \ - | egrep -v "^[[:space:]]*

[[:space:]]*$|^[[:space:]]*

[[:space:]]*$" \ + | egrep -v -i "^[[:space:]]*

[[:space:]]*$|^[[:space:]]*

[[:space:]]*$" \ | sed "s|\s*||" \ - | sed "s|\s*\s*$||" + | sed "s|\s*\s*$||" \ + | sed "s|\s*\s*$||" \ + | sed "s|\s*\s*$||" \ + | grep -v -P "^\s*$" -- cgit v1.2.3