comparison bin/? @ 1876:d414786a1837

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