Check my enterprise dubs check cowsay bash
Name:
Anonymous
2016-06-28 16:18
#!/bin/bash
if [ $# -eq 1 ]
then
cow=1
fi
b=$RANDOM
let "b %= 2"
function f() {
sed 's/$/ /g' | cut -b -32 | if [ $b -eq 1 ]
then
rev | tr '()/\\' ')(\/'
else
cat
fi
}
while true
do
if [ -z "$1" ]
then
exit
fi
echo ">>$1"
echo '[code]'
echo "$1" | egrep -q '([0-9])\1$'
if [ "$?" -eq 0 ]
then
r="OK"
msg="Well done!"
else
r="Error: InvalidDubsException"
msg="You failed!"
fi
s=$RANDOM
let "s %= 5"
ms=$RANDOM
let "ms %= 100"
echo "Dubs checker: v0.14 Input:$1 Result:$r"
if [ $cow ]
then
cowsay $(echo $msg | f $b) | f $b
else
echo "$msg"
fi
echo '
'
echo
shift
done
[/code]
Observer the enterprise dubs regex, and also enterprise random cowsay reversal.
You remember previous enterprise bash scripts of mine, such as the original sleep sort, from another /prog.
Name:
Anonymous
2016-06-28 16:18
Fuck, closing /code tag in the script messed things up.
Name:
Anonymous
2016-06-28 16:29
What programming language is this?
Name:
Anonymous
2016-06-28 16:31
test test[/code] test
Name:
Anonymous
2016-06-28 18:44
>>3I'm 12 and it looks like Python to me.
Name:
Anonymous
2016-06-28 22:19
You remember previous enterprise bash scripts of mine, such as the original sleep sort, from another /prog.
Oh I remember you being obnoxious with these dubs. You have been checking dubs daily on /prog/ for nearly 10 years, mate.
Name:
Anonymous
2016-06-28 23:10
>>6No fam, I haven't been on a /prog since 4ch text boards died, only discovering this one just recently.
Name:
Anonymous
2016-06-28 23:16
>>7Don't call me fam. Your shit is unwanted here.
Name:
Anonymous
2016-06-29 4:24
Name:
Anonymous
2016-06-29 8:18
no Java
no labyrinthine OOP
no XML
this ain't enterprise
Name:
Anonymous
2016-06-29 21:22
check these dubs
Name:
Anonymous
2016-06-29 23:03
Check em
Name:
Anonymous
2016-06-29 23:10
>>11Dubs checker: v0.14 Input:11 Result:OK
Well done!
>>12Dubs checker: v0.14 Input:12 Result:Error: InvalidDubsException
You failed!
Name:
Anonymous
2016-06-30 7:05
I'm glad we have this new dubs checker technology so we don't have to check dubs manually again!
Name:
Anonymous
2016-06-30 9:46
As a manual dubs checker, I feel displaced by this technology and demand suitable compensation.
Name:
Anonymous
2016-06-30 15:00
Check em