Mercurial > repo
comparison bin/? @ 1877:985e17f8a3fd
<Jafet> sed -ie \'s,-f UTF-8,-f UTF-16,\' bin/\\?
author | HackBot |
---|---|
date | Sun, 27 Jan 2013 09:26:50 +0000 |
parents | d414786a1837 |
children | c0e8233a8638 |
comparison
equal
deleted
inserted
replaced
1876:d414786a1837 | 1877:985e17f8a3fd |
---|---|
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 tr -d "[:print:]\r" </dev/urandom | iconv -f UTF-8 -t UTF-8 -c; | 6 then tr -d "[:print:]\r" </dev/urandom | iconv -f UTF-16 -t UTF-8 -c; |
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; |