comparison bin/? @ 9179:4f32313b94d9

<oerjan> sled bin/?//2s!"[)]!;s,\\\\(\\\\(..\\\\?\\\\)\\\\?/\\\\)*,,")!
author HackBot
date Thu, 06 Oct 2016 00:09:50 +0000
parents 4a7dd09919f1
children 426a317d6dfe
comparison
equal deleted inserted replaced
9178:4a7dd09919f1 9179:4f32313b94d9
1 #!/bin/bash 1 #!/bin/bash
2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//") 2 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//;s,\(\(..\?\)\?/\)*,,")
3 topic1=$(echo "$topic" | sed "s/s$//") 3 topic1=$(echo "$topic" | sed "s/s$//")
4 cd wisdom 4 cd wisdom
5 if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; 5 if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ];
6 then cat /dev/urandom; 6 then cat /dev/urandom;
7 elif [ -e "$topic" ]; 7 elif [ -e "$topic" ];