comparison bin/? @ 1891:5881e3a0c652

<Jafet> sed -ie \'s,UTF-32,UTF-16LE,\' bin/\\?
author HackBot
date Sun, 27 Jan 2013 09:42:00 +0000
parents b0f17685ac57
children 5ec896dab821
comparison
equal deleted inserted replaced
1890:b0f17685ac57 1891:5881e3a0c652
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-32 -t UTF-8 -c /dev/urandom; 6 then iconv -f UTF-16LE -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;