comparison bin/? @ 10340:4d09ce3dbd12

<oerjan> sled bin/?//3s,``,`\\\\(`\\\\|$\\\\),
author HackBot
date Fri, 24 Feb 2017 01:55:06 +0000
parents 5a436877bd42
children d5f74afaf00f
comparison
equal deleted inserted replaced
10339:5297a274b9a6 10340:4d09ce3dbd12
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/ *$//")
3 topic1=$(echo '`'"$topic" | sed 's/^``//') 3 topic1=$(echo '`'"$topic" | sed 's/^`\(`\|$\)//')
4 topic2=$(echo "$topic" | sed "s/s$//") 4 topic2=$(echo "$topic" | sed "s/s$//")
5 cd wisdom 5 cd wisdom
6 if [ \( "_$topic2"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; 6 if [ \( "_$topic2"_ = "_ngevd"_ \) -a \( -e ngevd \) ];
7 then cat /dev/urandom; 7 then cat /dev/urandom;
8 elif [ -e "$topic" ]; 8 elif [ -e "$topic" ];