Mercurial > repo
view bin/? @ 2716:bb8aae82db7c
<shachaf> sed -i \'s/tr A-Z a-z/lowercase/\' bin/\\?
author | HackBot |
---|---|
date | Sun, 14 Apr 2013 21:48:12 +0000 |
parents | ddbe0012f414 |
children | a20360ccb4cd |
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"; elif [ -e "$topic1" ]; then cat "$topic1"; else echo "$1? ¯\(°_o)/¯"; exit 1; fi