Mercurial > repo
view bin/? @ 4173:88d05b052b66
<oerjan> sed -i \'2s!sed.*!sed \'\\\'\'s/^`\\\\(a|the\\\\) //;s/[Ss]\\? .*//\'\\\'\')!\' bin/learn
author | HackBot |
---|---|
date | Wed, 11 Dec 2013 01:20:37 +0000 |
parents | fec2e65e53bc |
children | 5c5fc08f8113 |
line wrap: on
line source
#!/bin/sh topic=$(echo "$1" | lowercase | sed "s/ *$//") topic1=$(echo "$topic" | sed "s/s$//") cd wisdom if [ \( "$topic1" = "ngevd" \) -a \( -e ngevd \) ]; then cat /dev/urandom; elif [ -e "$topic" ]; then cat "$topic" | rnooodl; elif [ -e "$topic1" ]; then cat "$topic1" | rnooodl; else echo "$1? ¯\(°_o)/¯"; exit 1; fi