Mercurial > repo
view bin/? @ 10252:1ae58eb53daf
<shachaf> sled bin/?//s!\xc2\xaf\\\\(\xc2\xb0\xe2\x80\x8b_o)/\xc2\xaf!no such entry!
author | HackBot |
---|---|
date | Wed, 15 Feb 2017 00:47:11 +0000 |
parents | 5aa89f714ea0 |
children | 6a354a197616 |
line wrap: on
line source
#!/bin/bash topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;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? no such entry"; exit 1; fi | rnooodl