Mercurial > repo
view bin/? @ 2735:f4a2725a0dcb
<oerjan> sed -i \'s/lines=\\([$].*\\)/lines="\\1"/\' bin/pastelog
author | HackBot |
---|---|
date | Wed, 17 Apr 2013 22:43:05 +0000 |
parents | bb8aae82db7c |
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