From 587af4bea66b5bbe89163154141f4f5fa4c518e5 Mon Sep 17 00:00:00 2001 From: thomasZen Date: Mon, 13 Jan 2020 14:17:30 +0100 Subject: Remove paragraph opening and closing tag (#1) --- de-sgm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'de-sgm') diff --git a/de-sgm b/de-sgm index 664c18c..0b9177d 100755 --- a/de-sgm +++ b/de-sgm @@ -3,5 +3,5 @@ egrep -v "^[[:space:]]*(<\?xml.*\?>|]*>)[[:space:]]*$" \ | egrep -v "^[[:space:]]*<(url|description|keywords|talkid|title|translator|reviewer)[^>]*>.*[[:space:]]*$" \ - | sed "s|]*>\s*||" | sed "s|\s*$||" + | sed "s|]*>\s*||" | sed "s|\s*$||" | egrep -v "^[[:space:]]*

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

[[:space:]]*$" -- cgit v1.2.3 From 53c3d328dbe9a56b54f6d7dc51491ecf92081fef Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Mon, 3 Feb 2020 15:23:47 +0000 Subject: de-sgm --- de-sgm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'de-sgm') diff --git a/de-sgm b/de-sgm index 0b9177d..452edfe 100755 --- a/de-sgm +++ b/de-sgm @@ -1,7 +1,10 @@ #!/bin/sh - egrep -v "^[[:space:]]*(<\?xml.*\?>|]*>)[[:space:]]*$" \ | egrep -v "^[[:space:]]*<(url|description|keywords|talkid|title|translator|reviewer)[^>]*>.*[[:space:]]*$" \ - | sed "s|]*>\s*||" | sed "s|\s*$||" | egrep -v "^[[:space:]]*

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

[[:space:]]*$" + | sed "s|]*>\s*||" \ + | sed "s|\s*\s*$||" \ + | egrep -v "^[[:space:]]*

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

[[:space:]]*$" \ + | sed "s|\s*||" \ + | sed "s|\s*\s*$||" -- cgit v1.2.3 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(-) (limited to 'de-sgm') 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