changeset 9179:4f32313b94d9

<oerjan> sled bin/?//2s!"[)]!;s,\\\\(\\\\(..\\\\?\\\\)\\\\?/\\\\)*,,")!
author HackBot
date Thu, 06 Oct 2016 00:09:50 +0000
parents 4a7dd09919f1
children 8198fa9a9b02
files bin/?
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/?	Thu Oct 06 00:09:07 2016 +0000
+++ b/bin/?	Thu Oct 06 00:09:50 2016 +0000
@@ -1,5 +1,5 @@
 #!/bin/bash
-topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//")
+topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//;s,\(\(..\?\)\?/\)*,,")
 topic1=$(echo "$topic" | sed "s/s$//")
 cd wisdom
 if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ];