Mercurial > repo
view bin/? @ 1838:ddfabeb2e8be
<oerjan> learn shachaf spr\xc3\xb8 som selleri and cosplays Nepeta Leijon on weekends.
author | HackBot |
---|---|
date | Fri, 25 Jan 2013 21:55:56 +0000 |
parents | c07349799d0b |
children | 84c0476f1345 |
line wrap: on
line source
#!/bin/sh topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//") topic1=$(echo "$topic" | sed "s/s$//") if [ \( "$topic" = "ngevd" \) -a \( -e wisdom/ngevd \) ]; then cat /dev/urandom; exit 0; elif [ -e "wisdom/$topic" ]; then cat "wisdom/$topic"; elif [ -e "wisdom/$topic1" ]; then cat "wisdom/$topic1"; else echo "$1? ¯\(°_o)/¯"; exit 1; fi