Mercurial > repo
comparison bin/? @ 1889:e4afc16c5066
<Jafet> sed -ie \'s, | cat$,;,\' bin/\\?
author | HackBot |
---|---|
date | Sun, 27 Jan 2013 09:38:08 +0000 |
parents | 50351e052ee2 |
children | b0f17685ac57 |
comparison
equal
deleted
inserted
replaced
1888:50351e052ee2 | 1889:e4afc16c5066 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//") | 2 topic=$(echo "$1" | tr A-Z a-z | sed "s/ *$//") |
3 topic1=$(echo "$topic" | sed "s/s$//") | 3 topic1=$(echo "$topic" | sed "s/s$//") |
4 cd wisdom | 4 cd wisdom |
5 if [ \( "$topic" = "ngevd" \) -a \( -e ngevd \) ]; | 5 if [ \( "$topic" = "ngevd" \) -a \( -e ngevd \) ]; |
6 then iconv -f UTF-16 -t UTF-8 -c /dev/urandom | cat | 6 then iconv -f UTF-16 -t UTF-8 -c /dev/urandom; |
7 elif [ -e "$topic" ]; | 7 elif [ -e "$topic" ]; |
8 then cat "$topic"; | 8 then cat "$topic"; |
9 elif [ -e "$topic1" ]; | 9 elif [ -e "$topic1" ]; |
10 then cat "$topic1"; | 10 then cat "$topic1"; |
11 else echo "$1? ¯\(°_o)/¯"; exit 1; | 11 else echo "$1? ¯\(°_o)/¯"; exit 1; |