Mercurial > repo
view bin/? @ 10474:98c041807495
<oerjan> learn Fnordcore is fungot\'s favorite music genre.
author | HackBot |
---|---|
date | Tue, 21 Mar 2017 14:51:32 +0000 |
parents | 4d09ce3dbd12 |
children | d5f74afaf00f |
line wrap: on
line source
#!/bin/bash topic=$(echo "$1" | lowercase | 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