Mercurial > repo
view bin/? @ 10629:d5f74afaf00f
<hppavilion[1]> sled bin/?//s/lowercase/lowercase2/
author | HackBot |
---|---|
date | Wed, 12 Apr 2017 20:28:19 +0000 |
parents | 4d09ce3dbd12 |
children | c41d527b33a0 |
line wrap: on
line source
#!/bin/bash topic=$(echo "$1" | lowercase2 | sed "s/noo\+dl/nooodl/;s/ *$//") topic1=$(echo '`'"$topic" | sed 's/^`\(`\|$\)//') topic2=$(echo "$topic" | sed "s/s$//") cd wisdom if [ \( "_$topic2"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; then cat /dev/urandom; elif [ -e "$topic" ]; then cat "$topic"; elif [ -e "$topic1" ]; then cat "$topic1"; elif [ -e "$topic2" ]; then cat "$topic2"; else echo "$1? ¯\(°_o)/¯"; exit 1; fi | rnooodl